From c7eede843587aee2f960bf073ac6ca062b0c3cf8 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 23 Jul 2022 11:40:44 -0400 Subject: [PATCH] *RPC/DHT protocol now uses a command before the data to separate it from other communications --- src/rpcQuery.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rpcQuery.ts b/src/rpcQuery.ts index 0ba63bd..ade9ac4 100644 --- a/src/rpcQuery.ts +++ b/src/rpcQuery.ts @@ -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)); }); }