Products Downloads


French version


 

This function is used to retrieve a message linked to a subject subscribed using the NatsSubscribe function. The message is acknowledged if necessary (JetStream).


Context

  • Windows client

  • Windows server

  • Java client

  • Java server

  • Adelia Web Client

  • Adelia Cloud client

  • Event Adelia client


Parameters

NUM_BIN_4

Handle

Connection ID

ALPHA

Subject

Subject
NUM_BIN_4

Timout

Wait time

ALPHA

ReplyTo

Subject in which a reply must be transmitted. Output parameter

NUM_BIN_4

ReplyToLength

Length of ReplyTo parameter

IMAGE

MessageMessage. Output parameter.

NUM_BIN_4

Rc

Function return code. The possible values are provided in NatsLastError function documentation. Output parameter.



Example

ALPHA(250)   replyTo
IMAGE        binaryMessage
ALPHA(32700) textMessage
...

CALL_DLL 'NatsToolBx' 'NatsGetMessage' Handle 'orders.france' 500 replyTo 250 message Rc4

CALL_DLL 'VaToolBx' 'VaToolBxImageToAlpha' binaryMessage 'UTF-8' textMessage 32700 Rc2

↑ Top of page



  • Aucune étiquette