TinyBase logoTinyBase β

getWsServerDurableObjectFetch

The getWsServerDurableObjectFetch function returns a convenient fetch handler for a Cloudflare worker to route requests to a WsServerDurableObject for the given namespace.

getWsServerDurableObjectFetch<Namespace>(namespace: Namespace): (request: Request, env: {[namespace in Namespace]: DurableObjectNamespace<WsServerDurableObject>}) => Response
TypeDescription
namespaceNamespace
returns(request: Request, env: {[namespace in Namespace]: DurableObjectNamespace<WsServerDurableObject>}) => Response

Since

v5.4.0