callback parsed data

This commit is contained in:
jane 2021-06-04 22:25:22 -04:00
parent e746dad684
commit a4b28f5cdb

View file

@ -35,7 +35,7 @@ export function recv(callback, errorCallback) {
}
else {
con.write(`success ..\n${JSON.stringify(parsed_data)}`);
callback(data);
callback(parsed_data);
}
});
con.on('close', () => {