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

1new 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

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