RelicWebSocketConnection class

TransportConnection over a Relic RelicWebSocket, the socket a Serverpod WebSocketUpgrade hands over.

Text and binary frames both arrive as bytes on incoming. Sending on a closed socket is a no-op.

Constructors

RelicWebSocketConnection(RelicWebSocket _webSocket)
Wraps an already upgraded RelicWebSocket.

Properties

hashCode → int
The hash code for this object.
no setterinherited
incoming → Stream<List<int>>
Stream of incoming data, one event per message sent by the peer.
no setter
isConnected → bool
Whether the connection is active
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
Close the connection
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(List<int> data) → Future<void>
Send data as a single message.
toString() → String
A string representation of this object.
inherited

Operators

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