Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dioxus-cli does not proxy websocket connections #2155

Closed
1 of 3 tasks
sjames opened this issue Mar 27, 2024 · 1 comment · Fixed by #2975
Closed
1 of 3 tasks

dioxus-cli does not proxy websocket connections #2155

sjames opened this issue Mar 27, 2024 · 1 comment · Fixed by #2975
Assignees
Labels
cli Related to the dioxus-cli program enhancement New feature or request needs reproduction An issue that is missing a reproduction
Milestone

Comments

@sjames
Copy link

sjames commented Mar 27, 2024

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

  • 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
@ealmloff ealmloff added enhancement New feature or request cli Related to the dioxus-cli program labels Mar 27, 2024
@jkelleyrtp jkelleyrtp added this to the 0.6.0: Devtools milestone Apr 2, 2024
@jkelleyrtp jkelleyrtp self-assigned this Aug 1, 2024
@jkelleyrtp jkelleyrtp added the needs reproduction An issue that is missing a reproduction label Aug 2, 2024
@IgorLaborieV8
Copy link

I have the same issue with Dioxus v0.5.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the dioxus-cli program enhancement New feature or request needs reproduction An issue that is missing a reproduction
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants