*RPC/DHT protocol now uses a command before the data to separate it from other communications
This commit is contained in:
parent
cfc519b57b
commit
c7eede8435
|
@ -86,6 +86,7 @@ export default class RpcQuery {
|
||||||
resolve(null);
|
resolve(null);
|
||||||
});
|
});
|
||||||
socket.on("error", (error: any) => reject({ error }));
|
socket.on("error", (error: any) => reject({ error }));
|
||||||
|
socket.write("rpc");
|
||||||
socket.write(pack(this._query));
|
socket.write(pack(this._query));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue