ConnectInfo constructor

ConnectInfo({
  1. String? name,
  2. int? frameId,
  3. String? documentId,
})

Implementation

ConnectInfo({
  /// Is passed into onConnect for content scripts that are listening for the
  /// connection event.
  String? name,

  /// Open a port to a specific [frame](webNavigation#frame_ids) identified by
  /// `frameId` instead of all frames in the tab.
  int? frameId,

  /// Open a port to a specific [document](webNavigation#document_ids)
  /// identified by `documentId` instead of all frames in the tab.
  String? documentId,
}) : _wrapped = $js.ConnectInfo(
        name: name,
        frameId: frameId,
        documentId: documentId,
      );