Skip to content

Commit

Permalink
Merge pull request #42 from gbenhaim/ws
Browse files Browse the repository at this point in the history
fix: websocket connection to the k8s api
  • Loading branch information
sahil143 authored Nov 27, 2024
2 parents 9625b43 + 73c3ddd commit dbe5454
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/k8s/k8s-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ export const k8sWatch = (
const path = getK8sResourceURL(kind, undefined, opts);
wsOptionsUpdated.path = `/wss/k8s${path}`;
wsOptionsUpdated.host = 'auto';
wsOptionsUpdated.subProtocols = ['base64.binary.k8s.io'];

return new WebSocketFactory(path, wsOptionsUpdated);
};
Expand Down

0 comments on commit dbe5454

Please sign in to comment.