DurableObjectState
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:532
Properties
Section titled “Properties”container?
Section titled “container?”
optional
container:Container
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:536
readonly
id:DurableObjectId
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:534
storage
Section titled “storage”
readonly
storage:DurableObjectStorage
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:535
Methods
Section titled “Methods”abort()
Section titled “abort()”abort(
reason?
):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:546
Parameters
Section titled “Parameters”reason?
Section titled “reason?”string
Returns
Section titled “Returns”void
acceptWebSocket()
Section titled “acceptWebSocket()”acceptWebSocket(
ws
,tags?
):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:538
Parameters
Section titled “Parameters”string
[]
Returns
Section titled “Returns”void
blockConcurrencyWhile()
Section titled “blockConcurrencyWhile()”blockConcurrencyWhile<
T
>(callback
):Promise
<T
>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:537
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”callback
Section titled “callback”() => Promise
<T
>
Returns
Section titled “Returns”Promise
<T
>
getHibernatableWebSocketEventTimeout()
Section titled “getHibernatableWebSocketEventTimeout()”getHibernatableWebSocketEventTimeout():
null
|number
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:544
Returns
Section titled “Returns”null
| number
getTags()
Section titled “getTags()”getTags(
ws
):string
[]
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:545
Parameters
Section titled “Parameters”Returns
Section titled “Returns”string
[]
getWebSocketAutoResponse()
Section titled “getWebSocketAutoResponse()”getWebSocketAutoResponse():
null
|WebSocketRequestResponsePair
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:541
Returns
Section titled “Returns”null
| WebSocketRequestResponsePair
getWebSocketAutoResponseTimestamp()
Section titled “getWebSocketAutoResponseTimestamp()”getWebSocketAutoResponseTimestamp(
ws
):null
|Date
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:542
Parameters
Section titled “Parameters”Returns
Section titled “Returns”null
| Date
getWebSockets()
Section titled “getWebSockets()”getWebSockets(
tag?
):WebSocket
[]
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:539
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”setHibernatableWebSocketEventTimeout()
Section titled “setHibernatableWebSocketEventTimeout()”setHibernatableWebSocketEventTimeout(
timeoutMs?
):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:543
Parameters
Section titled “Parameters”timeoutMs?
Section titled “timeoutMs?”number
Returns
Section titled “Returns”void
setWebSocketAutoResponse()
Section titled “setWebSocketAutoResponse()”setWebSocketAutoResponse(
maybeReqResp?
):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:540
Parameters
Section titled “Parameters”maybeReqResp?
Section titled “maybeReqResp?”Returns
Section titled “Returns”void
waitUntil()
Section titled “waitUntil()”waitUntil(
promise
):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:533
Parameters
Section titled “Parameters”promise
Section titled “promise”Promise
<any
>
Returns
Section titled “Returns”void