cruhl
cruhl8mo 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!
3 Replies
BeBoRE
BeBoRE8mo ago
There is currently no adapter for CloudFlare Workers subscriptions, you'd have to implement one yourself
cruhl
cruhlOP8mo ago
Yep, finally got it working, wasn't too bad, but still need to implement the hibernation API
BeBoRE
BeBoRE8mo ago
Oh, sick. Would you like to share your implementation?