cruhl
cruhl9mo ago

Does anyone have an example of subscriptions implemented in CloudFlare Workers?

I'm trying to use subscriptions via WebSocket in CloudFlare Workers, but it's been a real pain so far. Looking for any advice, thanks in advance!
4 Replies
BeBoRE
BeBoRE9mo ago
There is currently no adapter for CloudFlare Workers subscriptions, you'd have to implement one yourself
cruhl
cruhlOP9mo ago
Yep, finally got it working, wasn't too bad, but still need to implement the hibernation API
BeBoRE
BeBoRE9mo ago
Oh, sick. Would you like to share your implementation?
brumbrum_brum
brumbrum_brum2w ago
Hey, would you be able to share the adapter?