ConnectionHandler typedef
ConnectionHandler =
FutureOr<void> Function(Connection connection, HubRequest request)
Handles an upgraded WebSocket Connection together with the originating HubRequest (for routing context — host, path, principal).
Implementation
typedef ConnectionHandler =
FutureOr<void> Function(Connection connection, HubRequest request);