Skip to content

Commit d505c0b

Browse files
authored
Merge pull request #2088 from cjihrig/bad-type
web-socket-handler: fix type for TypeScript update
2 parents b165a02 + 75818e8 commit d505c0b

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)