Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> We do have some plans around making WebSockets more efficient by allowing the application to shut down while keeping idle WebSockets open, and start back up on-demand when a message arrives.

Please make noise when that rolls out! I was literally wishing for that yesterday.

I want to use Cloudflare Workers to quickly connect p2p WebRTC clients, but when a new peer joins there needs to be open WebSockets to send connection-setup messages to each peer in the room. But with how that works / is billed today it really doesn’t make sense to have a bunch of idling WebSockets.

An alternative is having each client poll the worker continuously to check for new messages, but that introduces a bunch of latency during the WebRTC connection negotiation process.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: