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

Possibility to configure WebSocket ping port #6271

Closed
ussuritiger opened this issue Feb 12, 2019 · 1 comment
Closed

Possibility to configure WebSocket ping port #6271

ussuritiger opened this issue Feb 12, 2019 · 1 comment

Comments

@ussuritiger
Copy link

Feature request

Is your feature request related to a problem? Please describe.

My development setup consists of multiple Docker containers:

  1. Next.js application running in development mode
  2. Mock API
  3. Proxy that is used in front of Next.js application and mock API containers so one host is used for accessing both the application and API.

Next.js 8.0 has introduced WebSockets based ping approach. This in turn uses randomly assigned port for WebSocket connection and makes it impossible for me to specify which port to open in proxy container to proxy to the application container. This results in refresh of the page every 5 seconds after WebSocket connection fails.

Describe the solution you'd like

Possibility to configure WebSocket ping port will solve this issue since that specific port can be opened and proxied in the proxy container.

Describe alternatives you've considered

Solution described above is desired and probably absolutely doable. As an alternative I would consider possibility to specify ping approach: either fetch based or WebSocket based.

@Timer
Copy link
Member

Timer commented Feb 12, 2019

Duplicate of #6248.

@Timer Timer closed this as completed Feb 12, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Feb 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants