WebSocketTransport class

A transport that sends MonitorEvents via WebSocket.

Implemented types

Constructors

WebSocketTransport(WebSocketChannel channel)
Creates a WebSocketTransport from an existing WebSocketChannel.

Properties

hashCode int
The hash code for this object.
no setterinherited
onConnect Stream<void>
Stream that emits when a connection is established or re-established.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 event to 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.