Skip to content

EventSource.prototype is not getting called #55

@rrohitesh

Description

@rrohitesh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions