When i start a index.js file through command line
node index.js
It starts but, it print the result multiple time even a single user is connected. Result is:-
7544816137 is connected
gX8dcI27WNRNww6QAAAd
gX8dcI27WNRNww6QAAAd
connected as id 277
7544816137 is connected
gX8dcI27WNRNww6QAAAd
gX8dcI27WNRNww6QAAAd
connected as id 277
This happens on digital ocean server only, It doesn’t happen on localserver. Please tell me a way to resolve this problem
This comment has been deleted
This comment has been deleted
Client side code
Server side code
@sheshant Friend provide more info, How the client is connecting? Post more logs? Show us the source code?