You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To go into more detail, it really depends on the server implementation. Server sent events typically are implemented as a never ending stream so onclose will never fire unless the connection is closed by the client or the server.
To get around this many apis will send a "done" or "finished" event to notify the client that no more messages will be sent. For example it might look like this:
I need to do something when the stream is complete?
onclose doesnt seem to be firing
any help appreciated
The text was updated successfully, but these errors were encountered: