Moved to socket.io client instead of server