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

Server-sent events not supported? #357

Closed
caub opened this issue Dec 30, 2012 · 5 comments
Closed

Server-sent events not supported? #357

caub opened this issue Dec 30, 2012 · 5 comments

Comments

@caub
Copy link

caub commented Dec 30, 2012

the following code http://pastie.org/private/esae5stq8jxw1lioo8vclq
works if you gave 2 browsers on 127.0.0.1:8000/notify
and execute

source = new EventSource('/events');
source.onmessage = function(e) {
    console.log(e.data);
};

in the console of one, then refresh the other

but on 127.0.0.1/notify the proxying blocks server sent events

@caub
Copy link
Author

caub commented Dec 30, 2012

more simply
just one browser to 127.0.0.1:8000/notify

source = new EventSource('/events');

source.readyState prints 0 (connecting), as expected

then 127.0.0.1/notify
source.readyState prints 2 (closed)

@go1dfish
Copy link

go1dfish commented Oct 8, 2013

Were you ever able to find a solution to this?

@caub
Copy link
Author

caub commented Oct 8, 2013

no, but anyway websocket does the job

@afterthought
Copy link

This is an issue for us too!!!!!

@jcrugzz
Copy link
Contributor

jcrugzz commented Oct 30, 2015

If this is still a problem for people, open a new issue. This seems like a candidate for a separate module

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

4 participants