WebsocketConnection.sendMessage

void sendMessage(soup.types.WebsocketDataType type, glib.bytes.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

typethe type of message contents
messagethe message data as #GBytes