Constructor
new RpcClient(amqpUri, channelName, configurationopt)
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
amqpUri |
AmqpURI
|
||
channelName |
ChannelName
|
||
configuration |
Configuration
|
<optional> |
Methods
callRemote(contentToPublish) → {boolean|string}
Perform the "server" call with some data.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
contentToPublish |
number
|
string
|
boolean
|
Object
|
Array
|
Returns:
- Type:
-
boolean|string
the correlation ID of the call. The user can use this as to distinguish between multiple answers. If something went wrong, false will be returned.