new ZMQContext()
Methods
(static) publish(message, topic, endpoint)
Sends a message and returns the response
Parameters:
Name | Type | Description |
---|---|---|
message | string | The message string |
topic | string | The topic string |
endpoint | string | The endpoint string |
- Since
- 5.4.0
(static) push(message, endpoint)
Sends a message
Parameters:
Name | Type | Description |
---|---|---|
message | string | The message string |
endpoint | string | The endpoint string |
- Since
- 5.4.0
(static) request(message, endpoint, timeoutopt)
Sends a message and returns the response
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message | string | The message string | |
endpoint | string | The endpoint string | |
timeout | integer | <optional> | The timeout in milliseconds |
- Since
- 5.4.0