http/websocket/websocket library

Functions

wsEcho() RouteHandler
wsRespond<T>(WsOnConnect onConnect, {Encoding? encoding}) RouteHandler
wsStream<T>(WsOnConnect onConnect) RouteHandler
Data read from stream is sent to the websocket.

Typedefs

WsOnConnect<T> = FutureOr<T> Function(Context ctx, WebSocket ws)
WsResponder = FutureOr Function(dynamic data)