Interface for WebSocket engine implementations.
Defines the core operations that a WebSocket engine must support for managing WebSocket connections, including opening, closing, and sending messages.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
[int? closeCode, String? closeReason]) → Future< Result< void> > - Closes the WebSocket connection.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
WebSocketOptions options) → Future< Result< void> > - Opens a WebSocket connection with the specified options.
-
sendMessage(
Outgoing message) → Result< void> - Sends a message through the WebSocket connection.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited