Skip to content
Sign upLog in
← Back to Community

Socket.io Messages Not Showing In Console

Profile icon
vedprad1

I believe there is an error in my code, because the messages inside the socket.io connections are not showing up in the console. However I can't seem to find it. Any help appreciated!

Voters
Profile icon
HyF
Profile icon
AAnonymity
Profile icon
vedprad1
Comments
hotnewtop
Profile icon
[deleted]

Hi. I have taken your code, edited it and it is working. You may need to refresh the page between edits. To do this so a hard refresh of the repl (Chrome: Ctrl+Shift+r, Firefox: Ctrl + r) otherwise the sockets and cookies that Socket.io sets up will still be in existence and this will screw things up. Here is the link to my repl: https://repl.it/@malvoliothegood/Express-Socketio-2

This is a good resource: https://www.tutorialspoint.com/socket.io/socket.io_event_handling.htm

Profile icon
vedprad1

@malvoliothegood
: I did everything you did, and I also refreshed the page, but the messages still do not show up.

Profile icon
vedprad1

@malvoliothegood
: Never mind! it works now!

Profile icon
[deleted]