TinyBase logoTinyBase β

onIgnoredError

The onIgnoredError method is called when the Durable Object receives an invalid synchronization protocol message. The sending client is disconnected after this method is called. The default implementation does nothing.

onIgnoredError(error: any): void
TypeDescription
errorany

The error that was encountered.

returnsvoid

This has no return value.

Example

This example logs ignored Durable Object synchronization errors.

import {WsServerDurableObject} from 'tinybase/synchronizers/synchronizer-ws-server-durable-object';

export class MyDurableObject extends WsServerDurableObject {
  onIgnoredError(error) {
    console.error(error);
  }
}

Since

v9.3.0