connectMessage
fun connectMessage(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (<Error class: unknown class>, <Error class: unknown class>) -> Unit): <Error class: unknown class>
Emitted when we receive a message from the peer.
As a convenience, the @message data will always be null-terminated, but the NUL byte will not be included in the length count.
Parameters
connectFlags
A combination of ConnectFlags
handler
the Callback to connect. Params: type
the type of message contents; message
the message data