Establish WebSocket connection