This commit is contained in:
Zahary Karadjov 2021-11-30 02:45:36 +02:00 committed by zah
parent 77c85a8876
commit 5a28176080
2 changed files with 2 additions and 7 deletions

View File

@ -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.} =

View File

@ -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