mirror of
https://github.com/DeBrosOfficial/orama.git
synced 2026-06-17 03:54:12 +00:00
- Add migrations for per-namespace publish sequences and persistent WebSocket function settings - Integrate PersistentWSManager and WSBridge into the gateway dependency graph - Upgrade serverless engine to use a multi-tier rate limiter - Update JWT claims to support custom application-defined fields
16 lines
742 B
Go
16 lines
742 B
Go
// Package wsbridge wires PubSub topics directly to WebSocket clients,
|
|
// bypassing the per-event WASM invocation overhead.
|
|
//
|
|
// A function that wants to forward many high-frequency PubSub events to a
|
|
// connected client calls ws_pubsub_bridge(clientID, topic) once. The
|
|
// gateway then auto-forwards every matching message to that client's WS
|
|
// without invoking the WASM module per event.
|
|
//
|
|
// Subscriptions are namespace-scoped and reference-counted: when the first
|
|
// client in namespace N bridges topic T, a libp2p subscription is opened.
|
|
// Subsequent clients reuse it. When the last client unbridges (or
|
|
// disconnects), the libp2p subscription is dropped.
|
|
//
|
|
// See plan: core/plans/platform/10_WS_PUBSUB_BRIDGE.md
|
|
package wsbridge
|