new VivochaData()
Internal constructor, not to be used directly.
Extends
Methods
send(data, topicopt)
Send data
to the remote party, with optional topic
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
string | Data to send. Must be serializable into a string. |
|
topic |
string |
<optional> |
User-defined topic of the message. If no topic is specified, a |
send(data, topicopt)
Send data
to the remote party, with optional topic
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
string | Data to send. Must be serializable into a string. |
|
topic |
string |
<optional> |
User-defined topic of the message. If no topic is specified, a |
send(data, topicopt)
Send data
to the remote party, with optional topic
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
string | Data to send. Must be serializable into a string. |
|
topic |
string |
<optional> |
User-defined topic of the message. If no topic is specified, a |
Events
data
- Overrides:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
channel |
string | The channel id the received the message. |
|
data |
string | The message payload. |
|
topic |
string |
<optional> |
The topic. |
Data was received from the remote side. If a topic was specified in the message, the event fired will be the topic,
and not data