set method

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

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

Implementation

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