From ecf49a06329f49f1993008b0ee08e3f3e13cc422 Mon Sep 17 00:00:00 2001 From: Viktor Kirilov Date: Fri, 8 May 2020 16:13:00 +0300 Subject: [PATCH] updated news --- json_rpc.nimble | 2 +- json_rpc/clients/websocketclient.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/json_rpc.nimble b/json_rpc.nimble index 7a910ae..416cf2b 100644 --- a/json_rpc.nimble +++ b/json_rpc.nimble @@ -12,7 +12,7 @@ requires "nim >= 0.17.3", "chronos", "httputils", "chronicles", - "news >= 0.2 & < 0.3", + "news >= 0.4 & < 0.5", "chronicles", "json_serialization" diff --git a/json_rpc/clients/websocketclient.nim b/json_rpc/clients/websocketclient.nim index 000a767..3db6776 100644 --- a/json_rpc/clients/websocketclient.nim +++ b/json_rpc/clients/websocketclient.nim @@ -36,7 +36,7 @@ proc processData(client: RpcWebSocketClient) {.async.} = var error: ref Exception try: while true: - var value = await client.transport.receivePacket() + var value = await client.transport.receiveString() if value == "": # transmission ends break