We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e647102 + d362973 commit 5ca2d39Copy full SHA for 5ca2d39
node-client/src/web-socket-handler.ts
@@ -43,7 +43,7 @@ export class WebSocketHandler {
43
44
public static handleStandardInput(conn: ws.connection, stdin: stream.Readable | any) {
45
stdin.on('data', (data) => {
46
- const buff = Buffer.from(data, data.length + 1);
+ const buff = Buffer.alloc(data.length + 1);
47
buff.writeInt8(0, 0);
48
if (data instanceof Buffer) {
49
data.copy(buff, 1);
0 commit comments