How to use the event-source-polyfill.CLOSED function in event-source-polyfill

To help you get started, we’ve selected a few event-source-polyfill examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github doubleleft / hook-javascript / dist / hook.js View on Github external
}, function (data) {
      that.readyState = EventSource.CLOSED;
      that._trigger.apply(that, ["state:error", data]);
    });
  };

event-source-polyfill

A polyfill for http://www.w3.org/TR/eventsource/

MIT
Latest version published 2 years ago

Package Health Score

62 / 100
Full package analysis