Data channel associated with the event.
Received message, readable as a stream of chunks or awaited as a whole.
Read or cancel it: the sender's later messages on this channel wait until
the receiver has read most of a large message. A message that has no
channel or channel:message listener is read and discarded.
OptionalinfoInformation the sender attached to the message with the info send option.
Label of the data channel.
Name of the event.
Peer object containing connection details.
OptionalrawAlways false or absent here; a channel with a protocol emits ChannelRawMessageEvent.
Detected type of the message, which decides what data resolves to.
Emitted when a message is received on a data channel.
Example