Show HN: Shared EventSource

To get around the browser maximum limit of 6 SSE connections per domain (eg. on localhost) I created a very small library which forwards one EventSource to all tabs and workers using a BroadcastChannel. A leader is selected using the Web Locks API. It has the same API as a regular EventSource.
1 points monssoen 1 year ago 0 comments

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton