Skip to content

Commit

Permalink
fix(tunnel-beta): Hook up websocket AbortSignal
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed Aug 13, 2023
1 parent 0618c2f commit 2cc9950
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tunnel-beta/via-websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export class WebsocketRestClient extends KubeConfigRestClient {
const serverWs = new WebSocketStream(url.toString(), {
headers,
protocols: opts.expectTunnel,
signal: opts.abortSignal,
});

const serverConn = await serverWs.connection;
Expand Down

0 comments on commit 2cc9950

Please sign in to comment.