send_message


Description:

[ Version ( since = "2.68" ) ]
public void send_message (WebsocketDataType type, Bytes message)

Send a message of the given type to the peer.

Note that this method, allows to send text messages containing null characters.

The message is queued to be sent and will be sent when the main loop is run.

Parameters:

this

the WebSocket

type

the type of message contents

message

the message data as Bytes