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

feat: listen on new port #60

Merged
merged 4 commits into from
Jun 1, 2020
Merged

feat: listen on new port #60

merged 4 commits into from
Jun 1, 2020

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Apr 28, 2020

We were using WS before 1.x src but migrated to SSE because of two reasons:

  1. Browser compatibility (same issue as webpack HMR)
  2. Programmatic usage and custom servers

But it started another issue (nuxt/nuxt#6442) as of connection limitations.

This PR resolves connection limit issue (so in the worst case, loading-indicator popup will not work until reload). After this PR we can add optional WS support as well because the server is separated so we don't get (2) issue and as is optional we won't get (1) issue.

As this is a breaking change for nuxt, we need to release as a major with some changes to nuxt for usage. (nuxt/nuxt#7286)

pooya parsa added 2 commits April 28, 2020 14:07
BREAKING CHANGE: no longer adding serverMiddleware
packages/loading/lib/loading.js Outdated Show resolved Hide resolved
@pi0 pi0 marked this pull request as ready for review June 1, 2020 14:58
@pi0 pi0 merged commit 119a032 into master Jun 1, 2020
@pi0 pi0 deleted the feat/new-port branch June 1, 2020 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants