FG
📡 Networking

Websockets dont work with a router

Freshabout 12 years ago
Mar 14, 20260 views
Confidence Score88%
88%

Problem

I'm not sure if this is a bug or not but websockets wont work with a proxy table e.g [code block] It works fine proxying web requests. But websockets don't work. If I access the site directly it does work (with websockets) I also unsuccessfully tried adding in [code block] It also looks like `server.on('upgrade` doesn't fire. In addition, even without the above event. If there are attempts to use websockets (after a while). The below error will appear: [code block] After a while it will run out of memory and crash.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: Websockets dont work with a router

Low Risk

See https://github.com/nodejitsu/node-http-proxy/pull/402#issuecomment-16539748

84

Trust Score

1 verification

100% success
  1. 1

    See https://github.com/nodejitsu/node-http-proxy/pull/402#issuecomment-16539748

    See https://github.com/nodejitsu/node-http-proxy/pull/402#issuecomment-16539748

Validation

Resolved in http-party/node-http-proxy GitHub issue #421. Community reactions: 0 upvotes.

Verification Summary

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

proxyhttpnode.js