KeepaliveRequest class

Implemented types

Constructors

KeepaliveRequest({int receiveTimeoutMs = 0, int intervalMs = 0})
KeepaliveRequest.fromJson(Map<String, dynamic> json)
factory
KeepaliveRequest.fromReader(TeleportObjectReader reader)
factory
KeepaliveRequest.fromTeleport(Uint8List data)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
intervalMs ↔ int
How often the server now sends a keepalive when nothing else is sent, in milliseconds. If nothing arrives from the server for a little longer than this, the connection has stopped delivering the server's messages. 0 means the server does not announce it.
getter/setter pair
receiveTimeoutMs ↔ int
How long the server now waits for anything from the client before dropping it, in milliseconds. A client can give up on a silent connection after this long, instead of waiting for the worst-case timeout in AuthResponse, because the server has given up on it too. 0 means the server does not announce it.
getter/setter pair
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
toJson() → Map<String, dynamic>
toProtocolMessage(int senderId, {ProtocolMessageOverrides? overrides}) → ProtocolMessage
Frames the message under its type's opcode and payload version. The type's default flags (unreliable for an unreliable message) are added to overrides' own.
override
toString() → String
A string representation of this object.
inherited
toTeleport() → Uint8List
writeTo(TeleportObjectWriter scope) → void

Operators

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