Closed gbjk closed 4 months ago
Attention: Patch coverage is 2.94118%
with 33 lines
in your changes are missing coverage. Please review.
Project coverage is 35.87%. Comparing base (
d679a76
) to head (bb9cd14
).:exclamation: Current head bb9cd14 differs from pull request most recent head 0c0c3ec. Consider uploading reports for the commit 0c0c3ec to get more accurate results
WsConnect is calling GetInstruments, and when that fails, erroring out and not subscribing to anything.
The response to get instruments is an object {}, which skips the IncomingWithData check in wsReadData for arrays []. The check in wsHandleData depended on client_ord_id, but I figure so long as there's a nonce which matches, we can palm it off.
This results simutaneously in having to move the login handler back to it's waiting nonce-parser, and also simplifying/deduping it.
Type of change
How has this been tested