ArriWebsocketController<TIncoming, TOutgoing> class

Constructors

ArriWebsocketController({required WebSocketChannel channel, required MessageParser<TIncoming> parser, required MessageSerializer<TOutgoing> serializer})

Properties

channel → WebSocketChannel
final
hashCode int
The hash code for this object.
no setterinherited
isClosed bool
getter/setter pair
parser MessageParser<TIncoming>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serializer MessageSerializer<TOutgoing>
final

Methods

close([int? statusCode = status.goingAway, String? reason]) → void
listen({required dynamic onMessage(TIncoming message), dynamic onErrorMessage(ArriError error)?, dynamic onEvent(WsEvent<TIncoming> event)?, dynamic onConnectionError(Object?)?, dynamic onDone()?, bool? cancelOnError}) StreamSubscription
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(TOutgoing msg) → void
toString() String
A string representation of this object.
inherited

Operators

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