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

ondata method incompatible with 'data' event from server #15

Open
rhythnic opened this issue Dec 14, 2016 · 3 comments
Open

ondata method incompatible with 'data' event from server #15

rhythnic opened this issue Dec 14, 2016 · 3 comments

Comments

@rhythnic
Copy link

rhythnic commented Dec 14, 2016

LoopBack sends a 'data' event instead of a 'message' event from the server. This causes the EventSource polyfill's ondata method to be called continuously. I renamed the ondata method to onRequestData in my project and it fixed it.

@amvtek
Copy link
Owner

amvtek commented Dec 15, 2016

hum, this was solved before. We need to check the npm version, I suspect it maybe behind current.

@rhythnic
Copy link
Author

Unfortunately I never committed the altered package.json, but the version number at the top of the file I altered says 0.9.6.

@amvtek
Copy link
Owner

amvtek commented Dec 16, 2016

0.9.7 corrected this issue, but apparently it is not seen as current from npm.
we will look into this

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

2 participants