*RPC/DHT protocol now uses a command before the data to separate it from other communications

This commit is contained in:
Derrick Hammer 2022-07-23 11:40:44 -04:00
parent cfc519b57b
commit c7eede8435
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ export default class RpcQuery {
resolve(null);
});
socket.on("error", (error: any) => reject({ error }));
socket.write("rpc");
socket.write(pack(this._query));
});
}