javascript – in nodejs+express how to prevent socket.io from returning all multiple added chat messages twice? and only return the single added message once

[I am trying to make a littlechat with socket.io + node express, the problem is that when emitting the socket it returns in the browser not only the message that I have added, but all the previous ones, so that in the browser view I only have correct messages added i have to refresh the … Read more