setting up socket.io and talking to client