Server-side WebSocket API