Closed Toshiyuki-Tega closed 6 years ago
Maybe it's parsing the URL incorrectly, sprinkle some echo
into the code :)
Apparently we ignore the query of the URI when passing the path
Should work now with https://github.com/niv/websocket.nim/commit/6d0836fc10b3ba8c26f3485274895715dfd014c8, try updating to 0.3.3 and see if it works
Ah, so it wasn't receiving trade data at all because the query part was removed in method A.
Confirmed that both methods now receive trade data as expected. Thanks for prompt fix!
I have written a very simple program which subscribe to BitMEX exchange trade data.
When the client object is created by providing a full URI like method A above, only the initial welcome message is received.
However, if it is created like method B by providing host name, port and the path separately, it does receive subsequent trade data successfully.
What's going wrong with the client when created like method A?