If the SDK receives invalid JSON data from a streaming connection (possibly as a result of the connection being cut off), it now uses its regular error-handling logic: the error is emitted as an error event or, if there are no error event listeners, it is logged. Previously, the error would be thrown as an unhandled exception.
[2.0.1] - 2022-02-17
Fixed:
error
event or, if there are noerror
event listeners, it is logged. Previously, the error would be thrown as an unhandled exception.