MessageParseError

View as MarkdownOpen in Claude

Raised when an inbound signaling message cannot be decoded — typically a malformed JSON payload or one that fails schema validation. The SDK skips the offending message and continues; persistent occurrences usually indicate a server/client version skew.

Extends

  • Error

Constructors

Constructor

new MessageParseError(originalError): MessageParseError

Parameters

originalError
unknownRequired

Underlying parse error (typically a JSON or schema error).

Properties

originalError
unknownRequired

Underlying parse error (typically a JSON or schema error).

Examples

import { MessageParseError } from '@signalwire/js';
client.errors$.subscribe((err) => {
if (err instanceof MessageParseError) {
console.warn('skipped unparsable message:', err.originalError);
}
});