Skip to content
Advertisement

Tag: server-sent-events

While loops for server-sent events are causing page to freeze

I am currently working on a chat that uses Server-Sent Events to receive the messages. However, I am running into a problem. The server-sent event never connects and stays at pending because the page doesn’t load. For example: I expect that every 3 seconds, “data: This is the message.” will be outputted. Instead, the page just doesn’t load. However, I

Advertisement