onUserScriptConnect property

EventStream<Port> get onUserScriptConnect

Fired when a connection is made from a user script from this extension.

Implementation

EventStream<Port> get onUserScriptConnect =>
    $js.chrome.runtime.onUserScriptConnect.asStream(($c) => ($js.Port port) {
          return $c(Port.fromJS(port));
        }.toJS);