You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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');
});
The text was updated successfully, but these errors were encountered:
Hello All,
I am using this with angualr 2 my code is like this :
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
The text was updated successfully, but these errors were encountered: