A simple demo showing WebSocket and HTTP communication between a React client and Cloudflare Worker server, when running on different domains. tl;dr - make sure you pass cors: true to routeAgentRequest.
Run the front end and agents server:
npm i && npm start