subscribe method

JSPromise<JSAny?> subscribe(
  1. JSArray<CookieStoreGetOptions> subscriptions
)

@AvailableInWorkers("window_and_service")

The subscribe() method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.

Implementation

external JSPromise<JSAny?> subscribe(
    JSArray<CookieStoreGetOptions> subscriptions);