TransportWsEvent class

An event dispatched by the TransportWsClient.

Constructors

TransportWsEvent.closed(Object event)
const
TransportWsEvent.connected(WebSocketChannel socket, Map<String, Object?>? payload)
const
TransportWsEvent.connecting()
const
TransportWsEvent.error(Object event)
const
TransportWsEvent.message(TransportWsMessage message)
const
TransportWsEvent.opened(WebSocketChannel socket)
const
TransportWsEvent.ping(Map<String, Object?>? payload, {required bool received})
const
TransportWsEvent.pong(Map<String, Object?>? payload, {required bool received})
const

Properties

event Object?
final
hashCode int
The hash code for this object.
no setterinherited
message → TransportWsMessage?
final
payload Map<String, Object?>?
final
received bool?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
socket → WebSocketChannel?
final
type TransportWsEventType
The type of the event.
final

Methods

execute<T>(TransportWsEventHandler<T> handler) → T?
Executes the handler for the current event type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited