WebSocket.send

Sends a text message.

On the JavaScript side, the text will be available as message.data (type string).

Throws

A WebSocketException is thrown if the connection gets closed before or during the transfer of the message.

Meta