Skip to content

feat(sdk): in-browser SSE multiplexing (per-topic + cross-tab leader election) #255

Description

@EricAndrechek

Area: sdk — backlog feature (SDK epic) · promoted from #194

What: share one SSE connection across in-page subscriptions and across tabs via a browser leader election (SharedWorker / leader-election lib).

Context: each liveQuery opens its own SSE connection today; many subscriptions/tabs multiply connections against the server. A leader tab/worker holding one connection and fanning out cuts server load and client overhead.

Scope: per-topic in-page multiplexing + cross-tab leader election. Shares substrate with the shared client cache (filed alongside).

Related: SDK epic #194; shared client cache (filed alongside); SSE replay semantics #204.


Promoted from the #194 SDK-epic backlog ("Later / not yet scoped"); 2026-06-04.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/sdkTypeScript SDK (clients/ts/)area/streamingSSE / live-query delivery path (/v1/stream)enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions