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

EventSource.prototype is not getting called #55

Open
rrohitesh opened this issue Mar 31, 2017 · 0 comments
Open

EventSource.prototype is not getting called #55

rrohitesh opened this issue Mar 31, 2017 · 0 comments

Comments

@rrohitesh
Copy link

rrohitesh commented Mar 31, 2017

Hello All,

I am using this with angualr 2 my code is like this :

const es = require('../../../style/vendors/EventSource');
es.EventSource(SERVER_URL);

Firstly , i am not able to see that EventSource.protoype getting called which is inside EventSource.js
and secondly, when using es.addEventListener i am getting

TypeError: es.addEventListener is not a function

 es.addEventListener('open', function (event) {
console.log('event source open');
 });
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