Responding to SECS\GEM messages initiated by the equipment

Hi there! I’m new to Ignition and SECS/GEM. I am just wondering what is the best approach in responding to messages initiated by the equipment. I tried using onSecsGemRealtimeUpdate and was able to intercept the message and I was able to send a response back. However, I encountered an issue when the equipment with reply back to my response with a new message, onSesGemRealtimeUpdate was not able to intercept the message.

I also looked into custom responses where you can set a response to a corresponding stream function but I have no luck getting it to work. Maybe I’m missing some configuration on the SDL file or something.

TIA