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
CONNECTING, OPEN, CLOSED constants are not defined on the new EventSource(...) object.
CONNECTING
OPEN
CLOSED
new EventSource(...)
EventSource.CONNECTING === 0 // true EventSource.OPEN === 1 // true EventSource.CLOSED === 2 // true
Which is what expected, but not the following:
let es = new EventSource(url) es.CONNECTING === undefined // true es.OPEN === undefined // true es.CLOSED === undefined // true
I have not found details about this in the specification, but in Firefox 50.1.0 and Chrome 57 it works. Comparing to WebSocket API, it also works the same way in the browsers.
The text was updated successfully, but these errors were encountered:
f35e15d
No branches or pull requests
CONNECTING
,OPEN
,CLOSED
constants are not defined on thenew EventSource(...)
object.Which is what expected, but not the following:
I have not found details about this in the specification, but in Firefox 50.1.0 and Chrome 57 it works. Comparing to WebSocket API, it also works the same way in the browsers.
The text was updated successfully, but these errors were encountered: