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.
Parameters
type
the type of message contents
message
the message data as #GBytes