Use proper NodeRuntime in the formatter interface

This commit is contained in:
Kirill Bulatov 2023-09-06 17:23:04 +03:00
parent a420d9cdc7
commit a8387b8b19
10 changed files with 71 additions and 20 deletions

View file

@ -17,6 +17,7 @@ function handleData() {
const length = buffer.readUInt32LE(0);
console.log(length);
console.log(buffer.toString());
if (buffer.length < 4 + length) {
return;
}