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
handler
for connection requests to the socket. -
onDisconnect(
WebsocketHandler handler, {List< WebsocketHandler> middlewares = const []}) → Future<void> -
Set a
handler
for disconnection requests to the socket. -
onMessage(
WebsocketHandler handler, {List< WebsocketHandler> middlewares = const []}) → Future<void> -
Set a
handler
for 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
data
to a connection, referenced by itsconnectionId
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited