WebSocket server bugfix