Websocket class
Properties
Methods
-
asRequest(
) → ResourceDeclareRequest -
override
-
close(
String connectionId) → Future< void> -
Close a connection to the socket, referenced by its
connectionId. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onConnect(
WebsocketHandler handler, {List< WebsocketHandler> middlewares = const []}) → Future<void> -
Set a
handlerfor connection requests to the socket. -
onDisconnect(
WebsocketHandler handler, {List< WebsocketHandler> middlewares = const []}) → Future<void> -
Set a
handlerfor disconnection requests to the socket. -
onMessage(
WebsocketHandler handler, {List< WebsocketHandler> middlewares = const []}) → Future<void> -
Set a
handlerfor messages to the socket. -
register(
) → Future< void> -
Register the resource with the Nitric server. Handles shutting down the channel.
inherited
-
send(
String connectionId, String data) → Future< void> -
Send message
datato a connection, referenced by itsconnectionId. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited