Interface DurableObjectState
Methods
acceptWebSocket
- acceptWebSocket(ws, tags?): void
Returns void
blockConcurrencyWhile
- blockConcurrencyWhile<T>(callback): Promise<T>
Parameters
- callback: (() => Promise<T>)
- (): Promise<T>
Returns Promise<T>
Returns Promise<T>
getHibernatableWebSocketEventTimeout
- getHibernatableWebSocketEventTimeout(): number
Returns number
getTags
- getTags(ws): string[]
Returns string[]
getWebSocketAutoResponseTimestamp
- getWebSocketAutoResponseTimestamp(ws): Date
Returns Date
setHibernatableWebSocketEventTimeout
- setHibernatableWebSocketEventTimeout(timeoutMs?): void
Parameters
Optional
timeoutMs: number
Returns void
setWebSocketAutoResponse
- setWebSocketAutoResponse(maybeReqResp?): void
Returns void
waitUntil
- waitUntil(promise): void
Returns void