WebsocketConnection.sendMessage

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.

class WebsocketConnection
void
sendMessage

Parameters

type soup.types.WebsocketDataType

the type of message contents

message glib.bytes.Bytes

the message data as #GBytes