Refactored using sockets.io, sends client basic socket message.