jaguar.websocket library

Functions

wsHandler({WsHandler handler, FutureOr onConnect(Context ctx, WebSocket ws), WsResultProcessor resultProcessor }) RouteHandler
handler is called on reception of data. The return value from handler is written to the websocket. [...]

Typedefs

WsHandler(dynamic data) FutureOr
WsHandlerWithWs(dynamic data, [ WebSocket socket ]) FutureOr
Function prototype of a websocket handler [...]