[Feature Request]: Do not force client reconnect on 404 Not Found nginx/1.27.5 during page refresh

Open
#800 2 comments 2 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
18/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
nginx, react, typescript
Domain
frontend

Research direction

The payload names no files, tests or entry points. Start by reproducing the refresh case: serve the web client behind nginx, refresh a deep route, and observe the 404 and the dropped connection. Then locate the device connection and session handling in the TypeScript/React client. The request asks for two things: keeping the session across refresh, and a disconnect button. The maintainers must first agree on which behavior is wanted.

Written by the indexing model from the issue text.

Description

stale
Prerequisites
  • I have searched existing issues to ensure this feature hasn't already been requested
  • I have checked the documentation to verify this feature doesn't already exist
Problem Statement

When the Meshtastic web client is served behind nginx and a page refresh returns 404 Not Found, the client currently drops the session and requires a manual reconnect. Please make the client resilient when refreshing the page, and a disable button.

Image

Proposed Solution

So that when the page is refreshed, the work is not interrupted, and if you close it or click the disconnect button, the node is disconnected.

Current Alternatives

No response

Importance

Nice to have

Additional Context

No response

Dominant language
TypeScript
Stars
861
Forks
316
Avg merge
2d 10h
Merged PRs (30d)
18

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from meshtastic/web

All issues in meshtastic/web

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.