Closed htrendev closed 1 year ago
Thanks for your contribution, @htrendev! Please make sure you sign our CLA, as it's a required step before we can merge this.
CLA signed
Apologies for the late feedback: just tested this and it seems to be working as expected :ok_hand: I'll merge both PRs, thanks for your contribution!
A single WebSocket message may contain multiple requests. The code parses one request, then continues looking for more requests in the same WebSocket message. This works fine as long as the last request has no trailing whitespace. However, if there is any trailing whitespace after the last request an attempt to parse it as JSON results in an error.
This PR simply skips any trailing whitespace after each request