Skip to content
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

Event ID not recognized by Chrome when it follows after two new lines #2

Open
rda-dev opened this issue Mar 14, 2014 · 0 comments
Open

Comments

@rda-dev
Copy link

rda-dev commented Mar 14, 2014

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.

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.

I tried to manual modify server response and set it to

event: myevent
data: hello
id: 123

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant