This function is used to create a subscription to a NATS subject. Messages must be consumed synchronously.
Only subscription to a JetStream consumer is possible with the NATS toolbox. Synchronous consumption of core NATS messages is not possible so the NATS graphical object is needed.
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 | NATS subject | ||||||||||||||||||||||||||
NUM_BIN_4 | SubscriptionType | Subscription type
| ||||||||||||||||||||||||||
ALPHA | Options | List of options for JetStream subscribers in the form of a list of key/value pairs separated by semi-colons. The accepted options are:
| ||||||||||||||||||||||||||
NUM_BIN_4 | Rc | Function return code. The possible values are provided in NatsLastError function documentation. Output parameter. |
Example
CALL_DLL 'NatsToolBx' 'NatsSubscrible' Handle 'orders.france' 'durable: Orders' Rc
↑ Top of page Copyrights Ι ©Hardis Group 2025 - Any partial or total reproduction of the content, not expressly authorized by Hardis Group, is strictly prohibited.