We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ccb4e9 commit 9e329e3Copy full SHA for 9e329e3
src/server/injectors/proxy-injector.ts
@@ -55,9 +55,8 @@ export default class ProxyInjector implements KrasInjector {
55
const url = this.map[e.target] + e.url;
56
let open = false;
57
const buffer: Array<BufferEntry> = [];
58
- const ws = new WebSocket(url, {
+ const ws = new WebSocket(url, e.ws.protocol, {
59
rejectUnauthorized: false,
60
- protocol: e.ws.protocol,
61
});
62
ws.on('open', () => {
63
open = true;
@@ -67,6 +66,7 @@ export default class ProxyInjector implements KrasInjector {
67
66
}
68
69
ws.on('close', e => {
+ open = false;
70
core.emit('ws-closed', { reason: e });
71
72
ws.on('message', data => {
0 commit comments