socket.io properly connected on both server and client