Skip to content

Commit

Permalink
Merge pull request kubernetes-client#2088 from cjihrig/bad-type
Browse files Browse the repository at this point in the history
web-socket-handler: fix type for TypeScript update
  • Loading branch information
k8s-ci-robot authored Dec 4, 2024
2 parents b165a02 + 75818e8 commit d505c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web-socket-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function copyChunkForWebSocket(
encoding ??= 'utf-8';
const size = Buffer.byteLength(chunk, encoding);
buff = Buffer.alloc(size + 1);
buff.write(chunk, 1, size, encoding);
buff.write(chunk as string, 1, size, encoding);
}

buff.writeInt8(streamNum, 0);
Expand Down

0 comments on commit d505c0b

Please sign in to comment.