WebSocketSession class

Convenience wrapper around Dart IO WebSocket implementation

Constructors

WebSocketSession({FutureOr<void> onOpen(WebSocket webSocket)?, FutureOr<void> onMessage(WebSocket webSocket, dynamic data)?, FutureOr<void> onClose(WebSocket webSocket)?, FutureOr<void> onError(WebSocket webSocket, dynamic error)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
onClose ↔ (FutureOr<void> Function(WebSocket webSocket)?)
getter/setter pair
onError ↔ (FutureOr<void> Function(WebSocket webSocket, dynamic error)?)
getter/setter pair
onMessage ↔ (FutureOr<void> Function(WebSocket webSocket, dynamic data)?)
getter/setter pair
onOpen ↔ (FutureOr<void> Function(WebSocket webSocket)?)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
socket WebSocket
getter/setter pair

Methods

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