@splitsoftware/splitio-react-native
Version:
Split SDK for React Native
21 lines (19 loc) • 518 B
JavaScript
// @ts-nocheck
;
/**
* Event object passed to the `onopen`, `onmessage`, `onerror`
* callbacks of `EventSource`.
*
* The `type` property is "open", "message", "error" respectively.
*
* In case of "message", the `data` property contains the incoming data.
*/
class EventSourceEvent {
// type: string;
constructor(type, eventInitDict) {
this.type = type.toString();
Object.assign(this, eventInitDict);
}
}
module.exports = EventSourceEvent;
//# sourceMappingURL=EventSourceEvent.js.map