Hello,
I am using the NATS C library to publish and receive messages over NATS. I have a callback function attached to a DDS Reader, and whenever it receives any message over DDS, it forwards the same message over NATS using the js_PublishMsgAsync function. However, it returns error code 26, which is NATS_TIMEOUT.
Another function, which is registered as a callback for NATS messages, is able to publish messages using the same API. But at the same time, the same API (js_PublishMsgAsync) is failing when called from the callback function attached to the DDS Reader.
Does anyone know what might be the issue here?
Thanks in advance for the answers.
If you need any more help or further clarification, feel free to ask!