WebSocket
WebSocket module: types and API for WebSocket connections.
WebSocket connections are upgraded from HTTP via WebSocket.upgrade(conn, handler). The handler is a function WsSocket -> Unit that uses tail recursion and pattern matching on received frames.