onRemoteSessionStateChange property
A native application associated with this extension can cause this
event to be fired by writing to a file with a name equal to the
extension's ID in a directory named
WebAuthenticationProxyRemoteSessionStateChange
inside the
default
user data directory
The contents of the file should be empty. I.e., it is not necessary to change the contents of the file in order to trigger this event.
The native host application may use this event mechanism to signal a
possible remote session state change (i.e. from detached to attached, or
vice versa) while the extension service worker is possibly suspended. In
the handler for this event, the extension can call the
attach()
or detach()
API methods accordingly.
The event listener must be registered synchronously at load time.
Implementation
EventStream<void> get onRemoteSessionStateChange =>
$js.chrome.webAuthenticationProxy.onRemoteSessionStateChange
.asStream(($c) => () {
return $c(null);
}.toJS);