I'm trying to pass some information from localhost:3000
to localhost:3000/id
but whenever I visit the second url the socket.id
changes. If you npm app.js
you will see that the server outputs 'Client connected with id: id' twice. So the socket.id
changes and the server passes it to the wrong socket here.
Can't seem to figure what is causing the problem and am hoping you could help me out.
You can pull the files from here
Thanks
via user3627406
No comments:
Post a Comment