WebSocketEvent class
Represents different types of WebSocket events.
Constructors
- WebSocketEvent.new({required String type, dynamic data, DateTime? timestamp})
- Creates a new WebSocketEvent.
- WebSocketEvent.connected()
- Event when connection is established.
- WebSocketEvent.connectionFailed(String reason)
- Event when connection fails.
- WebSocketEvent.disconnected()
- Event when connection is lost.
- WebSocketEvent.error(String error)
- Event when an error occurs.
- WebSocketEvent.messageReceived(WebSocketMessage message)
- Event when a message is received.
- WebSocketEvent.messageSent(WebSocketMessage message)
- Event when a message is sent.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited