socket.io-website icon indicating copy to clipboard operation
socket.io-website copied to clipboard

Cloudflare example

Open gerhardcit opened this issue 4 months ago • 2 comments

Can you include an basic POC of how to setup socket.io using a Cloudlare worker?

There all these examples: https://socket.io/docs/v4/server-initialization/#options

So maybe first indicate it you advise it. And if not, may state that and could you explain why if possible?

gerhardcit avatar Feb 17 '24 09:02 gerhardcit

Hmm... I don't think this is possible. Could you please explain your use case?

darrachequesne avatar Mar 12 '24 00:03 darrachequesne

@darrachequesne, thx. Cloudflare supports websockets well. https://developers.cloudflare.com/workers/examples/websockets/

But I was hoping to leverage on the current socket.io approaches taken in other apps. socket.io technically sits on top of websockets correct? So ideally the way socket.io handle the management could be beneficial.

gerhardcit avatar Mar 12 '24 08:03 gerhardcit