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');
});