UNPKG

@lodestar/api

Version:

A Typescript REST client for the Ethereum Consensus API

8 lines 292 B
// This function switches between the native web implementation and a nodejs implemnetation export async function getEventSource() { if (globalThis.EventSource) { return EventSource; } return (await import("eventsource")).default; } //# sourceMappingURL=eventSource.js.map