Websocket JavaScript API
Connector functions websocket JS API guide
This API allows users to send message to opened websocket.
Websocket Object Properties
Property | Type | Description |
---|---|---|
payload | * | Data to be published. It will be converted to string. |
deviceId | String | Device identifier with the opened websocket |
Websocket Object Methods
sendMsg () ⇒ Object
Executes specified request using the properties of the websocket object
:
payload
: Data to be published.deviceId
: Device identifier with the opened websocket.