SocketTransport class

This class implements the raw socket transport for wamp messages. It is also capable of using connectanums own upgrade method to allow more then 16MB of payload.

Inheritance

Constructors

SocketTransport(String _host, int _port, AbstractSerializer _serializer, int _serializerType, {dynamic ssl = false, dynamic allowInsecureCertificates = false, dynamic messageLengthExponent = SocketHelper.maxMessageLengthExponent})
This creates a socket transport instance. The messageLengthExponent configures the max message length that will be excepted to be send and received. It is negotiated with the router and may lead into a lower value that messageLengthExponent if the router only supports shorter messages. The message length is calculated by 2^messageLengthExponent

Properties

hashCode int
The hash code for this object.
no setterinherited
headerLength int
no setter
isOpen bool
no setteroverride
isReady bool
no setteroverride
isUpgradedProtocol bool
no setter
maxMessageLength int?
no setter
onConnectionLost Completer?
no setteroverride
onDisconnect Completer?
no setteroverride
onReady Future<void>
no setteroverride
pingInterval Duration
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close({dynamic error}) Future<void>
override
complete(Completer? onDisconnectCompleter, dynamic error) → void
for internal use only is called to complete the private underlying onDisconnect with a void or an error
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open({Duration? pingInterval}) Future<void>
override
receive() Stream<AbstractMessage>
override
send(AbstractMessage message) → void
override
sendPing({Duration? timeout}) Future<Uint8List?>
Send a ping message to keep the connection alive. The returning future will fail if no pong is received withing the given timeout. The default timeout is 5 seconds.
toString() String
A string representation of this object.
inherited

Operators

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