server library

Server-side support for WebSockets.

Classes

AngelWebSocket
Broadcasts events from HookedServices, and handles incoming WebSocketActions.
ExposeWs
Marks a method as available to WebSockets, and not as an HTTP route.
WebSocketAction
A command sent to the server, usually corresponding to a service method.
WebSocketContext
Represents a WebSocket session, with the original RequestContext and ResponseContext attached.
WebSocketController
A special controller that also supports WebSockets.
WebSocketEvent<Data>
A notification from the server that something has occurred.
WebSocketEventTable
The data of the actions of a socket, by event name.

Typedefs

WebSocketActionHandler = FutureOr Function(WebSocketAction action, WebSocketContext socket)
A handler of a WebSocketAction, given to WebSocketController.exposeWs.
WebSocketResponseSerializer = String Function(dynamic data)