Wallacy
09/20/2021, 3:26 PMWallacy
09/20/2021, 3:27 PMW_L
09/20/2021, 10:31 PMenv.CLASSNAME.idFromName("...");
in order to be invoked?W_L
09/20/2021, 10:31 PMMrBBot
09/20/2021, 10:34 PMconst id = env.CLASSNAME.idFromName("name")
console.log(id.name); // "name"
...and potentially:
class DurableObject {
constructor(state, env) {
console.log(state.id.name);
}
}
...but really not sure if name will be defined in that 2nd examplejohn.spurlock
09/20/2021, 10:37 PMW_L
09/20/2021, 10:37 PMjohn.spurlock
09/21/2021, 12:40 AMcf-int-ctrl-1: {\"ewLog\":{\"cpuTime\":763,\"status\":\"ok\"}}
Electroid
09/21/2021, 12:57 AMjohn.spurlock
09/21/2021, 12:59 AMaa
09/21/2021, 1:14 AMaa
09/21/2021, 1:15 AMElectroid
09/21/2021, 1:35 AMwrangler tail
?john.spurlock
09/21/2021, 2:33 AMResponse
returned to the stub - note I think it only happens on responses to upgrade: websocket
requests initiated by the worker -> DOErwin
09/21/2021, 3:58 AMaa
09/21/2021, 4:12 AMErwin
09/21/2021, 4:20 AMErwin
09/21/2021, 4:22 AMsetTimeout(() => { const durationMs = start - Date.now() }, 0)
just before you return a response.. you can get a reasonable approximation of how long that request tookaa
09/21/2021, 4:35 AMaa
09/21/2021, 4:38 AMaa
09/21/2021, 4:39 AMErwin
09/21/2021, 4:44 AMdmitry.centro
09/21/2021, 12:04 PMErwin
09/21/2021, 12:07 PMronan(wighawag)
09/21/2021, 1:47 PMWalshy | Pages
09/21/2021, 1:51 PMronan(wighawag)
09/21/2021, 1:55 PMmatt
09/21/2021, 3:42 PMWallacy
09/21/2021, 4:04 PMWallacy
09/21/2021, 4:05 PM