update method
Writes multiple values at this location when the client is disconnected (due to closing the browser, navigating to a new page, or network issues).
Implementation
external JSPromise update(
JSObject values, [
// (a: Error | null) => any
JSFunction onComplete,
]);