RelayMessage class abstract

Base class for relay messages.

The relay never interprets CRDT data: change and snapshot payloads are carried as opaque base64 strings. Only relay clients encode and decode them (as Change/Snapshot binary formats from crdt_lf).

Message.documentId identifies the relay room.

Inheritance
Implementers

Constructors

RelayMessage(MessageTypeValue type, String documentId)
Constructor
const

Properties

documentId → String
The document ID to which the message refers
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → MessageTypeValue
The message type
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() → String
Serialize the message to a JSON string
inherited
toJson() → Map<String, dynamic>
Convert the message to a JSON map
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, dynamic> json) → Message?
Decodes a relay message from json.
override