mirror of
https://github.com/status-im/nim-json-rpc.git
synced 2025-02-25 02:35:15 +00:00
Fix #117
This commit is contained in:
parent
77c85a8876
commit
5a28176080
@ -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.} =
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user