Ask coding questions

← Back to all posts
Socket.io Delays to Emit Events
vedprad1

Socket.io Delays to Emit Events

I have been noticing this for several days now while working on a project. After I define a new event and a listener for socket.io, and I run the program, the event never happens. There is no error in the code. I check it multiple times, but the problem still exists. After a while, I give up, and the next day, I come back to find that the program works. There was no change in the code. This happened multiple times. Is anyone else also having this problem? If so, does anybody know how to fix it?

Voters
aboutabot
AAnonymity
vedprad1
Comments
hotnewtop
mwilki7

Sometimes I find myself having to refresh or open a new tab for a build with no changes to work. I have no idea what causes this.