Returns true if the Ably.ErrorInfo code matches the provided ErrorCode value.
The error info to check.
The error code to compare against.
true if the error code matches, false otherwise.
Returns true if the Ably.ErrorInfo code matches the provided ErrorCode value.