dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

dioxus-cli does not proxy websocket connections

Open sjames opened this issue 1 year ago • 1 comments

Problem

Steps To Reproduce

  • Implement a websocket API endpoint using Axum. Configure the development proxy to proxy calls to the API in Dioxus.toml using the [[web.proxy]] configuration option.

  • serve the application using dx serve

The UPGRADE request goes through and the upgrade request is sent back, but the websocket connection drops as soon as it is established.

Expected behavior

The proxy should also allow websocket connections.

Environment:

  • Dioxus version: 0.4.3
  • Rust version: 1.77.0
  • OS info: Linux (Ubuntu 22.04)
  • App platform: Web

Questionnaire

  • [x] I'm interested in fixing this myself but don't know where to start
  • [ ] I would like to fix and I have a solution
  • [ ] I don't have time to fix this right now, but maybe later

sjames avatar Mar 27 '24 13:03 sjames

I have the same issue with Dioxus v0.5.6

IgorLaborieV8 avatar Aug 20 '24 14:08 IgorLaborieV8

Has this issue been resolved?

It seems the same problem is occurring in version 0.6.1.

Are there any additional settings required?

cLazyZombie avatar Jan 18 '25 14:01 cLazyZombie

I still have the problem with 0.6.3. See https://github.com/DioxusLabs/dioxus/issues/4080.

buxx avatar May 06 '25 09:05 buxx

@jkelleyrtp could you please re-open this issue? It has been reported as still being an issue by multiple people.

sjames avatar May 26 '25 12:05 sjames

This was fixed in 0.7 by https://github.com/DioxusLabs/dioxus/pull/3895

ealmloff avatar May 26 '25 13:05 ealmloff