adds communication between sockets using socket.on event hi