
4/14/2021 · Kristian Freeman
What this post added
Introduced support for WebSockets in Cloudflare Workers, enabling real-time, interactive serverless applications. This involves handling the 'Upgrade' header, instantiating WebSocketPair, and using the `webSocket` property on the Response with a 101 status code. The post also details how to manage WebSocket events (message, close) and integrate with Durable Objects for stateful applications.