Skip to content

Commit

Permalink
Add missing method on PortforwardTunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed Aug 13, 2023
1 parent 09bc755 commit 097ef48
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/tunnels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,14 @@ export class PortforwardTunnel {
// TODO: implement websocket - using originalParams to know which websocket ports we expect
tunnel.stop();
throw new Error(`Kubernetes PortForwarding is too limited on WebSocket and is not implemented here. Try SPDY instead.`);
} else {
tunnel.ready();
}
}
private nextRequestId = 0;

get ready() {
return this.tunnel.ready();
}

async connectToPort(port: number) {
const requestID = this.nextRequestId++;
const [errorStream, stream] = await Promise.all([
Expand Down

0 comments on commit 097ef48

Please sign in to comment.