setWithPriority method

JSPromise<JSAny?> setWithPriority(
  1. JSAny? value,
  2. JSAny? priority, [
  3. JSFunction onComplete
])

Ensures the data at this location is set to the specified value and priority when the client is disconnected (due to closing the browser, navigating to a new page, or network issues).

Implementation

external JSPromise<JSAny?> setWithPriority(
  JSAny? value,
  JSAny? priority, [
  // (a: Error | null) => any
  JSFunction onComplete,
]);