From 8dce09419d32d50f54d7df24b71347d4f77fdd85 Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Mon, 26 Apr 2021 21:35:40 -0500 Subject: [PATCH] Adjust IPC communication --- services/torrent-webui/src/server/services/TorrentClientIpc.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/torrent-webui/src/server/services/TorrentClientIpc.ts b/services/torrent-webui/src/server/services/TorrentClientIpc.ts index 1e589a3..2c8129e 100644 --- a/services/torrent-webui/src/server/services/TorrentClientIpc.ts +++ b/services/torrent-webui/src/server/services/TorrentClientIpc.ts @@ -89,7 +89,7 @@ export default class TorrentClientIpc /** * Perform a general request to the torrent client */ - protected async request(method: string, message?: any) { + protected async request(method: string, ...message: any[]) { return new Promise((resolve, reject) => { if (!this.isConnected) { throw new Error("Not connected to torrent client"); @@ -140,6 +140,7 @@ export default class TorrentClientIpc console.error(response.error); throw new Error("Failed to obtain torrent list"); } + console.log("Response is:", response); return response.response; }