WebSocket view: fix connect to websocket server failing.