amitsolanki24_'s avatar

When we should use SSE EVENT in JS

I have a simple doubt, when should we use SSE event in JS and it it really helpful or not?

0 likes
2 replies
Snapey's avatar

Depends if your server knows something that is of immediate use to the client page.

For instance, if your server is preparing a report that takes time to produce, you might generate a SSE to tell the user that their report is ready.

1 like

Please or to participate in this conversation.