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