-
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
no data output from events() #18
Comments
The empty new line is a key part of the SSE spec to separate events being sent by the server. If the server is not sending the empty new line between event then it is not compliant with the specification. Do you have an example of the server response? |
Thanks for you promt reply.
|
That is indeed not specification-compliant and would be interpreted as one single large event. Ideally you should change the server to correctly emit an empty new line between each event. Otherwise you'd have to hack something into this library to infer when it is appropriate to dispatch an event (most likely here: https://github.com/mpetazzoni/sseclient/blob/master/sseclient/__init__.py#L51). |
sorry to bother you,
I have a question here, if the server side send out event data stream but without (empty new line), then this sseclient will hang there, right? in this case , how to make it work?
thanks for your time
The text was updated successfully, but these errors were encountered: