slim share does not proxy Next.js HMR websocket upgrades (wss /_next/hmr)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- go, next.js
- Domain
- networking
Research direction
Reproduce with a Next.js dev server on port 3000, slim share --port 3000, and the /_next/hmr websocket path, comparing Slim with the working local and ngrok cases. Trace the tunnel's websocket upgrade and __/slim/visit handling; done means the remote request returns 101 and the app hydrates normally.
Written by the indexing model from the issue text.
Description
Summary
When using slim share to expose a local Next.js dev server, page hydration fails on mobile because the HMR websocket upgrade request does not complete through the tunnel.
Environment
- macOS 25.6.0
- Next.js 16.3.0-preview.5 (tested with both Turbopack and Webpack dev)
- Local app at
http://localhost:3000 - Tunnel command:
slim share --port 3000 - Client: iPhone Safari
Repro
- Start Next.js dev server on port 3000.
- Start
slim share --port 3000. - Open the generated
https://<slug>.slim.showURL on iPhone Safari. - Continue from the Slim interstitial (
/__slim/visit) to the app route. - Observe that the app remains on a loading/blank state and React hydration does not complete.
Expected
The tunnel should support websocket upgrade requests so Next dev runtime can connect to /_next/hmr and hydrate normally.
Actual
Websocket upgrade to wss://<slug>.slim.show/_next/hmr fails (browser reports non-101 / bad response, and we also observed 504 in some attempts).
Evidence
- Local websocket works:
ws://localhost:3000/_next/hmropens successfully. - Same app + same machine over ngrok works:
wss://<slug>.ngrok-free.app/_next/hmropens successfully. - Only Slim tunnel fails for the HMR websocket path.
Additional note
The interstitial visit flow (/__slim/visit) appears before reaching the app. If there is a way to bypass or pre-authorize this for dev websocket paths, that may help as well.
Happy to provide more logs/videos if useful.
- Dominant language
- Go
- Stars
- 2.2k
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nilbuild/slim
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
tcp supportOpenenhancement
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
JuliusBrussee/caveman#1567 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
[DOC] API documentation link is broken on the databricks_workspace_binding registry pagePossibly taken @akhil9tiet claimed this today. Opendocs
Difficulty 1/5 Under an hour Newbie friendliness 82/100
databricks/terraform-provider-databricks#6276 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
topic: code type: enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
arduino/arduino-cli#3368 ·
Maintainers usually reply within 1 day