DurableObjectState
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:527
Type Parameters
Section titled “Type Parameters”Props = unknown
Properties
Section titled “Properties”container?
Section titled “container?”
optionalcontainer:Container
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:532
readonlyid:DurableObjectId
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:530
readonlyprops:Props
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:529
storage
Section titled “storage”
readonlystorage:DurableObjectStorage
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:531
Methods
Section titled “Methods”abort()
Section titled “abort()”abort(
reason?):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:542
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:534
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:533
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:540
Returns
Section titled “Returns”null | number
getTags()
Section titled “getTags()”getTags(
ws):string[]
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:541
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:537
Returns
Section titled “Returns”null | WebSocketRequestResponsePair
getWebSocketAutoResponseTimestamp()
Section titled “getWebSocketAutoResponseTimestamp()”getWebSocketAutoResponseTimestamp(
ws):null|Date
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:538
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:535
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:539
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:536
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:528
Parameters
Section titled “Parameters”promise
Section titled “promise”Promise<any>
Returns
Section titled “Returns”void