WebSocketHandler class

A WebSocket handler for Spry framework.

This class is used to handle WebSocket connections.

Constructors

WebSocketHandler({required WebSocketOnConnected onConnected, Handler? fallback, WebSocketProtocolSelector? protocolSelector, CompressionOptions compression = CompressionOptions.compressionDefault})
const

Properties

compression CompressionOptions
WebScoket compression options.
final
fallback Handler?
Fallback handler.
final
hashCode int
The hash code for this object.
no setterinherited
onConnected WebSocketOnConnected
The WebSocket connected handler.
final
protocolSelector WebSocketProtocolSelector?
WebSocket protocol selector.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(Context context) FutureOr<void>
As the WebSocket handler cast to Spry Handler.
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