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