got client to communicate with sever using socket.io