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| Type | Description | |
|---|---|---|
error | any | The error that was encountered. |
| returns | void | 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