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
class MyEventSource extends EventSource { close() { console.log('My close function call') } } const es = new MyEventSource(...) es.close()
In the Browser (Chrome or Firefox) the output is:
My close function call
But in the NodeJS the output is:
undefined
Because my close function does not override the EventSource.close function.
close
EventSource.close
The text was updated successfully, but these errors were encountered:
Make close() a prototype method. Closes EventSource#67.
close()
207c7b4
a9f2efe
Merge pull request #77 from rexxars/close-on-prototype
0c9eae0
Make `close()` a prototype method. Closes #67.
Fixed in v1.0.2
Sorry, something went wrong.
No branches or pull requests
In the Browser (Chrome or Firefox) the output is:
But in the NodeJS the output is:
Because my
close
function does not override theEventSource.close
function.The text was updated successfully, but these errors were encountered: