Send a data string through the connection. You can use JSON.stringify to convert a JSON or JavaScript values to a JSON string.
Parameter | Type | Description |
---|---|---|
data | string | The data to send. |
Example
- See also Socket.sendBinary(data)
Send a data string through the connection. You can use JSON.stringify to convert a JSON or JavaScript values to a JSON string.
Parameter | Type | Description |
---|---|---|
data | string | The data to send. |