From 5a281760803907f4989cacf109b516381dfbbe11 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Tue, 30 Nov 2021 02:45:36 +0200 Subject: [PATCH] Fix #117 --- json_rpc/clients/websocketclient.nim | 2 +- tests/all.nim | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/json_rpc/clients/websocketclient.nim b/json_rpc/clients/websocketclient.nim index 13f7424..caf145a 100644 --- a/json_rpc/clients/websocketclient.nim +++ b/json_rpc/clients/websocketclient.nim @@ -114,6 +114,7 @@ when useNews: headers["Origin"] = "http://localhost" client.transport = await newWebSocket(uri, headers) client.uri = uri + client.loop = processData(client) else: proc connect*( client: RpcWebSocketClient, uri: string, @@ -129,7 +130,6 @@ else: ) client.transport = ws client.uri = uri - client.loop = processData(client) method close*(client: RpcWebSocketClient) {.async.} = diff --git a/tests/all.nim b/tests/all.nim index 215aee7..a5c83e3 100644 --- a/tests/all.nim +++ b/tests/all.nim @@ -4,12 +4,7 @@ import ../json_rpc/clients/config import - testrpcmacro, testethcalls, testhttp - -when not useNews: - # TODO The websock server doesn't interop properly - # with the news client at the moment - import testserverclient + testrpcmacro, testethcalls, testhttp, testserverclient when not useNews: # The proxy implementation is based on websock