Upgraded WebSocket connection to use Socket.IO