Skip to content

Commit dbe5454

Browse files
authored
Merge pull request #42 from gbenhaim/ws
fix: websocket connection to the k8s api
2 parents 9625b43 + 73c3ddd commit dbe5454

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/k8s/k8s-utils.ts

+1
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ export const k8sWatch = (
237237
const path = getK8sResourceURL(kind, undefined, opts);
238238
wsOptionsUpdated.path = `/wss/k8s${path}`;
239239
wsOptionsUpdated.host = 'auto';
240+
wsOptionsUpdated.subProtocols = ['base64.binary.k8s.io'];
240241

241242
return new WebSocketFactory(path, wsOptionsUpdated);
242243
};

0 commit comments

Comments
 (0)