WebSocketTransport class
A transport that sends MonitorEvents via WebSocket.
- Implemented types
Constructors
- WebSocketTransport(WebSocketChannel channel)
-
Creates a WebSocketTransport from an existing
WebSocketChannel.
Properties
Methods
-
close(
) → void -
Releases resources and closes any active connections.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
MonitorEvent event) → void -
Dispatches the
eventto the transport destination.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
connect(
String serverUrl, {String? appId, WebSocketChannel channelBuilder(Uri uri)?}) → WebSocketTransport - Connects to a server at the given URL.