fetch-event-source icon indicating copy to clipboard operation
fetch-event-source copied to clipboard

Pr/make web worker friendly

Open Almar opened this issue 3 years ago • 8 comments

With this change fetchEventSource can be used from within a web worker

Almar avatar May 28 '21 15:05 Almar

CLA assistant check
All CLA requirements met.

ghost avatar May 28 '21 15:05 ghost

Hello, is there any blockers to merge this PR?

romain-guillot-symphony avatar Jul 07 '21 08:07 romain-guillot-symphony

I'd also like this PR to be merged, this would be a huge help, thanks!

arthyn avatar Jul 29 '21 19:07 arthyn

@vishwam hey just bumping this again, if you have a chance to look at it, thanks!

arthyn avatar Dec 09 '21 21:12 arthyn

I'm also very interested in seeing this PR getting merged. In regards to the other open PRs, is this project still in use at microsoft/ Azure? Is it still maintained?

mbiegert avatar Mar 24 '22 15:03 mbiegert

FYI adding

Object.defineProperty(global, 'self', {
    writable: true,
    enumerable: false,
    configurable: true,
    value: global,
});

in index.ts will also make this node-compatible!

benallfree avatar Dec 07 '22 13:12 benallfree

Do you have any plans to support the running of service workers?

yaxiaoliu avatar May 19 '23 15:05 yaxiaoliu

it seems this project is abandoned, so I have forked it to make it compatible with Cloudflare Workers here and published our forked version on npm at @magiccircle/fetch-event-source-cfworker.

I do not intend to maintain this fork, but dropping a link here in case it's helpful to others!

aroman avatar Jun 27 '23 22:06 aroman