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 ee37f81 + 988be1b commit 89a3289Copy full SHA for 89a3289
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.length + 1);;
+ const buff = Buffer.from(data, data.length + 1);
47
buff.writeInt8(0, 0);
48
if (data instanceof Buffer) {
49
data.copy(buff, 1);
0 commit comments