Added a Connect event for WebSocket connection establishment.