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

Proxy websockets in dev server #25

Open
Ajayneethikannan opened this issue Jan 9, 2020 · 5 comments
Open

Proxy websockets in dev server #25

Ajayneethikannan opened this issue Jan 9, 2020 · 5 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Ajayneethikannan
Copy link
Member

Ajayneethikannan commented Jan 9, 2020

The issue is that,

  1. ws URLs are proxied as 'http://' URLs
  2. not able to proxy ws connections in development without external libraries such react.io-connect (which as far as I tested using long-polling)

Solutions for these would be great.

@Ajayneethikannan Ajayneethikannan added enhancement New feature or request good first issue Good for newcomers labels Sep 8, 2020
@dhruvkb
Copy link
Member

dhruvkb commented Sep 8, 2020

Just wanted to ask if you are sure about this? My memory is a little foggy but iirc, @pradumangoyal and I were testing websockets (with "ping-pong") on my development server and it was working fine.

@pradumangoyal
Copy link
Member

@dhruvkb I think that was django template-based. The one you made initially?

@dhruvkb
Copy link
Member

dhruvkb commented Sep 8, 2020

Yeah the very first one. Was that made in Django templates?

@Ajayneethikannan
Copy link
Member Author

I think maybe there is some issue in the webpack config 😅, I remember @algomaster99 facing some issues with WebSocket proxy while working on fac app publish

@algomaster99
Copy link
Member

@Ajayneethikannan yeah, I couldn't simply use /ws/do-something. Had to write the full absolute URL with ws:// mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants