Fix message offset

pull/5/head
Clément FRÉVILLE 1 year ago
parent 293f28ec9e
commit 1590aa91ff

@ -61,7 +61,7 @@ async function forwardOutput() {
switch (messageType) {
case 1:
case 2:
const text = encodeURIComponent(buff.subarray(37).toString());
const text = encodeURIComponent(buff.subarray(33).toString());
raw.write('event: message\n');
if (messageType === 1) {
raw.write('id: stdout\n');

Loading…
Cancel
Save