Inline websocket handler.