Adding socket.io for auto reconnect