-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Capture empty events #157
Comments
In theory, if connection goes down it would get closed or reconnect, I'm not sure why they are sending that, there's no need of it at all... If so, maybe is due to prevent connection being closed by some intermediary server, like AWS dows after two minutes (it gives a lot of problems with WebSockets...). Do you really need to listen to this notifications? If so, you could listen to the |
I think what he is pointing out is that empty strings do not emit the 'message' event. I read the specs. regarding this case and I couldn't figure whether if it should or it shouldn't (the
eventsource/lib/eventsource.js Lines 268 to 280 in 5ef0dc9
|
Seems like it just only reset the data buffer and the event type buffer, but doesn't emit an event. |
Hi, I'm working on a node app that connects a Bloomberg API. Bloomberg uses SEE for notifications and periodically sends out empty notifications that do not have any content as heartbeat.
I need to capture these empty notifications to know if the connection is alive but seems that these notifications are being ignored by the client. I wonder if there is any way to handle this type of event.
The text was updated successfully, but these errors were encountered: