ckoeninger
05/25/2023, 8:31 PMckoeninger
05/25/2023, 8:33 PMckoeninger
05/25/2023, 8:36 PMKoci
05/25/2023, 8:39 PMDanTheGoodman
05/25/2023, 9:26 PMDanTheGoodman
05/25/2023, 9:26 PMDanTheGoodman
05/25/2023, 9:30 PMkian
05/25/2023, 9:32 PMhttps://cdn.discordapp.com/attachments/773219443911819284/1111406396521586809/image.png▾
kian
05/25/2023, 9:32 PMDanTheGoodman
05/25/2023, 9:33 PMdeclare interface DurableObjectState {
waitUntil(promise: Promise<any>): void;
readonly id: DurableObjectId;
readonly storage: DurableObjectStorage;
blockConcurrencyWhile<T>(callback: () => Promise<T>): Promise<T>;
}
DanTheGoodman
05/25/2023, 9:33 PMDanTheGoodman
05/25/2023, 9:33 PMkian
05/25/2023, 9:33 PMDanTheGoodman
05/25/2023, 9:33 PMDanTheGoodman
05/25/2023, 9:34 PMDanTheGoodman
05/25/2023, 9:40 PMasync webSocketClose(ws: WebSocket, code: number, reason: string, wasClean: boolean) {
console.log(`websocket closed code=${code} wasClean=${wasClean} reason='${reason}'`)
}
async webSocketError(ws: WebSocket, error: any) {
console.log(`websocket error: ${error.message} --- ${JSON.stringify(error)}`)
}
DanTheGoodman
05/25/2023, 9:41 PMDanTheGoodman
05/25/2023, 9:49 PMKoci
05/25/2023, 10:08 PMhttps://cdn.discordapp.com/attachments/773219443911819284/1111415494021500989/Screenshot_2023-05-26_at_0.03.24.png▾
DanTheGoodman
05/25/2023, 10:09 PMKoci
05/25/2023, 10:10 PMKoci
05/25/2023, 10:10 PMDanTheGoodman
05/25/2023, 10:12 PMDanTheGoodman
05/25/2023, 10:12 PMKoci
05/25/2023, 10:12 PMDanTheGoodman
05/25/2023, 10:13 PMhttps://cdn.discordapp.com/attachments/773219443911819284/1111416748210655282/image.png▾
DanTheGoodman
05/25/2023, 10:13 PMKoci
05/25/2023, 10:16 PMKoci
05/25/2023, 10:17 PMDanTheGoodman
05/25/2023, 10:19 PM