Skip to content

fix: resolve Node 22 websocket crash and expose local dev server (#1) - #2

Open
hackerharsh016 wants to merge 1 commit into
udaysharmadev:mainfrom
hackerharsh016:fix-websocket-and-network
Open

fix: resolve Node 22 websocket crash and expose local dev server (#1)#2
hackerharsh016 wants to merge 1 commit into
udaysharmadev:mainfrom
hackerharsh016:fix-websocket-and-network

Conversation

@hackerharsh016

Copy link
Copy Markdown
  1. Patched Node.js 22.21.0 WebSocket Crash: Added a safeguard in the iGunWSServer plugin to polyfill server.httpServer.
    shouldUpgradeCallback if it's missing. This prevents the Vite dev server from crashing with a TypeError when establishing a WebSocket
    connection over HTTPS (a known regression in Node.js 22.21.0's http2 module).
  2. Exposed Local Dev Server: Added server: { host: true } to the Vite configuration so the development server binds to the local network
    ( 0.0.0.0 ) instead of just localhost . This resolves the issue where mobile phones scanning the QR code were unable to reach the host
    machine.

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.

1 participant