equanimityhow
05/26/2023, 8:44 PMWallacy
05/27/2023, 2:42 AMIann
05/27/2023, 2:43 AMIann
05/27/2023, 2:43 AMWallacy
05/27/2023, 2:43 AMIann
05/27/2023, 2:44 AMIann
05/27/2023, 2:44 AMIann
05/27/2023, 2:44 AMWallacy
05/27/2023, 2:45 AMawait caches.open('custom:cache')
HardAtWork
05/27/2023, 5:10 AMsathoro
05/27/2023, 7:49 AMzehawk
05/27/2023, 11:32 AMzehawk
05/27/2023, 11:37 AMsdan
05/27/2023, 12:30 PMthis.users
variable in the DO class. if two users are doing post requests to the DO at the same time, sometimes it doesn't show all of them
is it because that memory is wiped before another user can send a request to the same DO namespacesathoro
05/27/2023, 1:29 PMsdan
05/27/2023, 1:32 PMzegevlier
05/27/2023, 1:36 PMsdan
05/27/2023, 1:36 PMUnsmart | Tech debt
05/27/2023, 2:53 PMAdvany
05/27/2023, 3:02 PMzehawk
05/28/2023, 10:26 AMUnsmart | Tech debt
05/28/2023, 2:54 PMzehawk
05/28/2023, 8:15 PMHardAtWork
05/28/2023, 9:21 PMmackenzie
12/21/2023, 5:01 PMLuke Greenleaf
12/30/2023, 11:55 PMfetch: (request) => router
.handle(request)
// transform unformed responses
.then(json)
// add CORS headers to all requests including errors
.then(corsify)
// catch any errors
.catch(error)
second attempt:
fetch: (request, env, ctx) => router
.handle(request, env, ctx)
// transform unformed responses
.then(json)
// add CORS headers to all requests including errors
.then(corsify)
// catch any errors
.catch(error)
third attempt:
async fetch(request, env, ctx) {
await router
.handle(request)
// transform unformed responses
.then(json)
// add CORS headers to all requests including errors
.then(corsify)
// catch any errors
.catch(error)
}
alexander9602
01/09/2024, 8:49 PMMilan_
01/10/2024, 3:11 PMwebSocketX()
handler then the websocket you're given through the function arg is obviously hibernatable. If you get your websockets from this.state.getWebSockets()
, you also know they're hibernatable.
However, if you're saving them in some property on your DO I figure you could lose track if you use both regular and hibernatable ws in a single namespace.
Just want to see if any of y'all have an opinion 🙂