WebSocketManagerEvent class

Represents different types of WebSocket manager events.

Constructors

WebSocketManagerEvent.new({required String type, dynamic data, DateTime? timestamp})
Creates a new WebSocketManagerEvent.
WebSocketManagerEvent.connected()
Event when connected.
WebSocketManagerEvent.connecting()
Event when connecting.
WebSocketManagerEvent.connectionFailed(String reason)
Event when connection fails.
WebSocketManagerEvent.disconnected()
Event when disconnected.
WebSocketManagerEvent.error(String error)
Event when an error occurs.
WebSocketManagerEvent.fromConnectionEvent(WebSocketEvent event)
Creates an event from a connection event.
WebSocketManagerEvent.messageQueued(WebSocketMessage message)
Event when a message is queued.
WebSocketManagerEvent.messageSent(WebSocketMessage message)
Event when a message is sent.
WebSocketManagerEvent.reconnecting(int attempt)
Event when reconnecting.
WebSocketManagerEvent.reconnectionFailed(String reason)
Event when reconnection fails.

Properties

data → dynamic
Event data.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
Timestamp when the event occurred.
final
type String
The event type.
final

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