created the server side sockets using socket.io