MessageKey class
Where a message is ordered and how it is found again. Ordering is by the server's timestamp, with a monotonic sequence number breaking ties. A tie broken by arrival order alone is what the reference client relies on, and it only holds there because of an incidental property of the sort it uses.
Constructors
- MessageKey({required int time_ms, required int seq})
-
const
-
MessageKey.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seq → int
-
Assigned in arrival order, unique for the life of the connection.
final
- time_ms → int
-
Milliseconds since the epoch, from
server-timewhen the server sent one.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited