Skip to content

Remix dev asset server web socket error before first file change #4722

@feljx

Description

@feljx

What version of Remix are you using?

1.7.6

Steps to Reproduce

Using create-remix without a template and the following selection:

  • Just the basics
  • Cloudflare Workers
  • Typescript
  • No npm install

After starting the dev server with npm run dev, both Firefox and Safari cannot connect to the dev asset server web socket.

Expected Behavior

Browser should be able to connect to web socket.

Actual Behavior

image

Browser attempts to reconnect to web socket unsuccessfully.

The remix.config.js setting devServerPort is ignored in my barebones project (no changes made).

Observation

After saving any file in the app folder (which triggers either 2 or 3 [mf:inf] Worker reloaded! (0.50MiB) messages for me) AND subsequently reloading the page in the browser, the browser can connect to the web socket.

However, after worker reloaded 2 or 3 times, it falls back to port 8002 by itself. As I said above, this does not depend on the devServerPort setting; it falls back to 8002 either way.

Screenshot 2022-11-30 at 22 56 59

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions