Function durableObjectHub
-
durableObjectHub(
namespace: DurableObjectNamespace<SpoolLive>,
options?: string | DurableObjectHubOptions,
): LiveHubParameters
- namespace: DurableObjectNamespace<SpoolLive>
- options: string | DurableObjectHubOptions = {}
Returns LiveHub
A LiveHub over one named instance of the SpoolLive namespace. The hub cannot call back into the app, so a session the app ends is revoked with
spool.revoke, and one it forgets to revoke is cut off when its stream reachesmaxAge. The second argument is the instance name or DurableObjectHubOptions.