Copy payload for multiple clients

I have multiple clients connecting to my TREP FH. Now since they are subscribing to same Symbols, the payload for any update message will be same at any given point of time. If there is a way to create copies of the payload after encoding once?

Tagged:

Best Answer

  • Jirapongse
    Answer ✓

    @vishal.anand

    Thanks for reaching out to us.

    If you have a pre-encoded payload, you can set it in a message and call the rsslEncodeMsg method to encode the message to a buffer.

    1680239214315.png

    If you have a pre-encoded buffer that contains a message with payload, you can copy this buffer to another buffer and then use the utility functions, such as rsslReplaceStreamId to change some attributes in the buffer.

    Moreover, UPA has been rebranded to ETA which is in the Refinitiv Real-Time SDK. You need to use ETA instead of ETA.

    If you have any further questions, please let me know what programming language (C or Java) you are using.

    I hope that this information is of help.

Answers