-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add onClose or onReadyStateChange event #12
Comments
As an addition to this (maybe a separate issue?) it would be nice to be able to provide a new URL to reconnect to. (Use case: I'm using this library to interact with SignalR end points, and after disconnecting, the reconnect needs to pass a slightly-different URI to verify group membership top ensure the new connection continues to get the events it should) |
Interesting use case-- sounds like a separate issue. It's not something that we've thought of, since it's not really part of the SSE standard, but if I remember correctly SignalR kind of deviates from that in places. Would you be interested in contributing that functionality? |
Thanks - I'll break that out as a separate issue - wasn't sure if you had a specific reason for ensuring the URI didn't change. Happy to look to contribute the code myself, was just logging the issues first :) |
…methods added support for arbitrary HTTP methods & request body in event sour…
Would be useful to be able to detect when disconnects or reconnects happen.
The text was updated successfully, but these errors were encountered: