DurableObjectTransportOptions
The DurableObjectTransportOptions type describes the options for creating a broker transport for Cloudflare Durable Objects.
(
{durableObject: SyncletDurableObject} &
TransportOptions
)| Type | Description | |
|---|---|---|
durableObject | SyncletDurableObject | The |
Example
const transport = createDurableObjectTransport({
durableObject: this,
path: null, // -only mode
brokerPaths: /room[0-9]+/, // Only broker paths matching this pattern
});
Since
v0.0.7