HandshakeRequestMessage class

Handshake request message sent from client to server.

Inheritance

Constructors

HandshakeRequestMessage({required VersionVector versionVector, required String documentId, required PeerId author, int protocolVersion = Protocol.protocolVersion, SyncCapabilities? capabilities})
Constructor
const
HandshakeRequestMessage.fromJson(Map<String, dynamic> json)
Create a handshake message from a JSON map
factory

Properties

author → PeerId
The author of the message
final
capabilities SyncCapabilities?
The operation kinds the client can decode, or null when it declares none.
final
documentId String
The document ID to which the message refers
finalinherited
hashCode int
The hash code for this object.
no setterinherited
protocolVersion int
The wire protocol major version the client speaks.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type MessageTypeValue
The message type
finalinherited
versionVector → VersionVector
The client version vector
final

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
override
toString() String
A string representation of this object.
override

Operators

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