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.
type |
the type of message contents |
message |
the message data |