Paul
Explore posts from serversCDCloudflare Developers
•Created by Paul on 6/27/2024 in #wrangler
Whenever I run `dev`, the process
Hi Sethi, I'm running on macOS Sonoma 14.3. Apple M1 Max 64GB
2 replies
CDCloudflare Developers
•Created by Paul on 6/26/2024 in #workers-help
How to maintain WebSocket client connections in Durable Object?
As per Skye, the answer is below:
You'd probably want to use the tags option when accepting the websocket found here, alongside the getTags and getWebsockets method, rather than maintaining your own state, as that won't persist across hibernations
5 replies
CDCloudflare Developers
•Created by Paul on 6/26/2024 in #workers-help
How to maintain WebSocket client connections in Durable Object?
Or fundamentally, how can I restructure this whole thing so that I'm able to broadcast to all clients but delete the clients when they disconnect? I'm able to do it when NOT extending the "DurableObject" class, but then if I don't extend it, I don't think I'm able to use the Hibernation API via
this.ctx.acceptWebsocket(server)
5 replies
CDCloudflare Developers
•Created by Paul on 6/26/2024 in #workers-help
How to maintain WebSocket client connections in Durable Object?
Previously, I was able to do...
5 replies
CDCloudflare Developers
•Created by Paul on 6/26/2024 in #workers-help
How to maintain WebSocket client connections in Durable Object?
When extending the DurableObject class
5 replies