You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry if I'm duplicating an issue, but I could not find something similar. I need to create a web socket that uses an HTTP proxy. I tweaked the WebSocket.js file directly with no success. Some non-authoritative sources I found said the way to do it was in the requestOptions variable:
@Pimeau You can use the https-proxy-agent package (https://www.npmjs.com/package/https-proxy-agent) to route websocket requests through a proxy. (I just tried and succeeded through my corporate proxy).
Hello,
Sorry if I'm duplicating an issue, but I could not find something similar. I need to create a web socket that uses an HTTP proxy. I tweaked the WebSocket.js file directly with no success. Some non-authoritative sources I found said the way to do it was in the requestOptions variable:
var requestOptions = { port: 8080, host: 'OUR_PROXY', headers: { 'Connection': 'Upgrade', 'Upgrade': 'websocket', 'Host': headerHost, 'Sec-WebSocket-Version': options.value.protocolVersion, 'Sec-WebSocket-Key': key } };
We need this because we're behind a corporate proxy we have no control over.
Any advice would be highly appreciated.
The text was updated successfully, but these errors were encountered: