WebSocketTransport class

Implemented types

Constructors

WebSocketTransport({required WebSocket websocket, required void onDone()})

Properties

addStreamFuture ↔ Future<void>
latefinal
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sink → StreamSink<WebSocketData>
Messages added to this sink will be sent to the other side of the connection.
no setteroverride
stream → Stream<WebSocketData>
Messages from the other side of the connection will appear in this stream.
no setteroverride
websocket ↔ WebSocket
getter/setter pair
websocketSubscription ↔ StreamSubscription
latefinal

Methods

dispose() → Future<void>
Must be called to clean up resource after the transport is no longer in use.
override
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