DurableObject
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:470
Methods
Section titled “Methods”alarm()?
Section titled “alarm()?”
optional
alarm(alarmInfo?
):void
|Promise
<void
>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:472
Parameters
Section titled “Parameters”alarmInfo?
Section titled “alarmInfo?”AlarmInvocationInfo
Returns
Section titled “Returns”void
| Promise
<void
>
fetch()
Section titled “fetch()”Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:471
Parameters
Section titled “Parameters”request
Section titled “request”Returns
Section titled “Returns”webSocketClose()?
Section titled “webSocketClose()?”
optional
webSocketClose(ws
,code
,reason
,wasClean
):void
|Promise
<void
>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:477
Parameters
Section titled “Parameters”number
reason
Section titled “reason”string
wasClean
Section titled “wasClean”boolean
Returns
Section titled “Returns”void
| Promise
<void
>
webSocketError()?
Section titled “webSocketError()?”
optional
webSocketError(ws
,error
):void
|Promise
<void
>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:483
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”void
| Promise
<void
>
webSocketMessage()?
Section titled “webSocketMessage()?”
optional
webSocketMessage(ws
,message
):void
|Promise
<void
>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250725.0/node_modules/@cloudflare/workers-types/index.ts:473
Parameters
Section titled “Parameters”message
Section titled “message”string
| ArrayBuffer
Returns
Section titled “Returns”void
| Promise
<void
>