Skip to content

Commit 75818e8

Browse files
committed
web-socket-handler: fix type for TypeScript update
The TypeScript 5.7.2 update does not like one of the types. This commit updates the bad type. Refs: #2050
1 parent b165a02 commit 75818e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web-socket-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ function copyChunkForWebSocket(
262262
encoding ??= 'utf-8';
263263
const size = Buffer.byteLength(chunk, encoding);
264264
buff = Buffer.alloc(size + 1);
265-
buff.write(chunk, 1, size, encoding);
265+
buff.write(chunk as string, 1, size, encoding);
266266
}
267267

268268
buff.writeInt8(streamNum, 0);

0 commit comments

Comments
 (0)