Protocol class
Class that handles the communication protocol.
Constructors
- Protocol()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- clientTimeout → Duration
-
Client timeout (time after which a client is considered disconnected)
final
Static Methods
-
readVersion(
Map< String, dynamic> json) → int - Reads the protocol version out of a decoded frame.
Constants
- errorConnectionClosed → const String
- Error connection closed
- errorDocumentNotFound → const String
- Error document not found
- errorHandshakeFailed → const String
- Error handshake failed
- errorInternalError → const String
- Error internal error
- errorInvalidMessage → const String
- Error invalid message
- errorOutOfSync → const String
- Error client out of sync
- errorTimeout → const String
- Error timeout
- errorUnsupportedClient → const String
- Error: the client cannot decode operations the server's document holds.
- errorUnsupportedProtocolVersion → const String
- Error: the peer speaks a different protocolVersion.
- firstProtocolVersion → const int
- The version a frame that carries no version field speaks.
- handshakeTimeout → const Duration
- Handshake timeout
- maxBufferSize → const int
- Maximum buffer size
- maxReconnectAttempts → const int
- Maximum reconnect attempts
- pingInterval → const Duration
- Ping interval
- pingTimeout → const Duration
- Ping timeout
- protocolVersion → const int
- The major version of the wire protocol this build speaks.
- reconnectInterval → const Duration
- Reconnect interval
-
terminalErrors
→ const Set<
String> - The error codes a client can never recover from by trying again.