DataMessage class

One frame received over the data channel — the receive side of Room.send, delivered with Events.dataReceived.

Text and binary frames arrive on the same event. isBinary says which this is: read text for a text frame, data for a binary one.

Properties

data → Uint8List?
The bytes of a binary frame; null for a text one.
final
isBinary → bool
Whether the sender sent bytes rather than text.
final
reliable → bool
Whether the sender used reliable, ordered delivery.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
senderId → String?
The id of the participant who sent the frame.
final
text → String?
The text of a text frame; null for a binary one.
final
timestamp → int?
When the frame was sent, in milliseconds.
final