We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I need to specify unique ID to each of my event. For this purpose on server I use method set_event_id after add_message method call.
set_event_id
add_message
On server I use:
sse.add_message('myevent', 'hello') sse.set_event_id('123') yield
In browser I get
event: myevent data: hello id: 123
and after reconnect by EventSource object, browser doesn't set HTTP_LAST_EVENT_ID header.
HTTP_LAST_EVENT_ID
I tried to manual modify server response and set it to
With this response browser normally set HTTP_LAST_EVENT_ID to '123' after next reconnect.
What I'm doing wrong? How can I force the browser to set header to 123 with Sse methods?
I used Chrome 33.0.1750
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I need to specify unique ID to each of my event. For this purpose on server I use method
set_event_id
afteradd_message
method call.On server I use:
In browser I get
and after reconnect by EventSource object, browser doesn't set
HTTP_LAST_EVENT_ID
header.I tried to manual modify server response and set it to
With this response browser normally set
HTTP_LAST_EVENT_ID
to '123' after next reconnect.What I'm doing wrong? How can I force the browser to set header to 123 with Sse methods?
I used Chrome 33.0.1750
The text was updated successfully, but these errors were encountered: