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 SoupWebsocketDataType

the type of message contents

message Bytes

the message data as #GBytes

Meta

Since

2.68