Messages
Summary
Provides access to messaging API.
Signature
1 | |
Namespace
cAlgo.API
Examples
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
Methods
Subscribe
Summary
Subscribes to a message subject.
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| subject | string | Message subject. |
| handler | Action | Message handler callback. |
Return Value
MessageSubscription
Send
Summary
Sends a message for a specific subject.
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| subject | string | Message subject. |
| message | TMessage | Message to be sent, it can be any type including string. |
Return Value
void