shelf_web_socket library Null safety

Functions

webSocketHandler(Function onConnection, {Iterable<String>? protocols, Iterable<String>? allowedOrigins, Duration? pingInterval}) Handler
Creates a Shelf handler that upgrades HTTP requests to WebSocket connections.