Implemented Socket.io emit and receive to server and client for testing