VertoPongError

View as MarkdownOpen in Claude

Raised when the Verto ping/pong heartbeat misses a response window — typically a symptom of a stalled WebSocket or a network change that hasn’t yet been detected. The SDK reacts by disconnecting and starting the reconnection/recovery flow; this error is informational and does not by itself terminate any call.

Extends

  • Error

Constructors

Constructor

1new VertoPongError(originalError): VertoPongError

Parameters

originalError
unknownRequired

Underlying error raised by the Verto ping/pong handler.

Returns

VertoPongError

Properties

originalError
unknownRequired

Underlying error raised by the Verto ping/pong handler.

Examples

1import { VertoPongError } from '@signalwire/js';
2
3client.errors$.subscribe((err) => {
4 if (err instanceof VertoPongError) {
5 console.warn('heartbeat missed — reconnecting:', err.originalError);
6 }
7});