Best setup for webhook -> websocket?

What is the best way to take a web request and in turn send it to all open websocket connections? I normally would just use a regular nodejs script and run it on a server but I was curious to see if there was any way to do this with cloudflares serverless functionality. Looking into it myself I see the most clear path forward would be a worker + durable object alarm (https://developers.cloudflare.com/durable-objects/api/alarms/)
Alarms · Cloudflare Durable Objects docs
Durable Objects alarms allow you to schedule the Durable Object to be woken up at a time in the future. When the alarm’s scheduled time comes, the …
0 Replies
No replies yetBe the first to reply to this messageJoin