Reason for fix: The Listen method is not properly using _webSocket.ReceiveAsync.
You're getting bad JSON because you're not checking result.EndOfMessage. So you're getting a partial message and then the "leftovers" are the things you're trying to "trim".
Here's a pull request that will fix issue #29 that I created.
Reason for fix: The Listen method is not properly using _webSocket.ReceiveAsync. You're getting bad JSON because you're not checking result.EndOfMessage. So you're getting a partial message and then the "leftovers" are the things you're trying to "trim".
Here's a pull request that will fix issue #29 that I created.