Replies: 1 comment 8 replies
-
Looking at the patch, it seems like a ws passthrough for dev server. Does that mean for production ws connection just works fine? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Cloudflare Workers supports establishing WebSocket connection with client via Durable Objects. Currently, WebSocket upgrade request from client is intercepted by Vite HMR WebSocket server and has no mechanism to passthrough WebSocket messages from client to Durable Objects and vice versa. By providing a WebSocket proxy in Vite Cloudflare plugin, we can create WebSocket endpoints as loader function backed by Durable Objects. Further increase compatibility with the production environment of Cloudflare.
Implementation PR: #8834
Example: izznatsir/remix-cloudflare-websocket
Beta Was this translation helpful? Give feedback.
All reactions