IPFSWebNode constructor

IPFSWebNode({
  1. IPFSConfig? config,
  2. List<String> bootstrapPeers = const [],
})

Creates a new web IPFS node.

Implementation

IPFSWebNode({IPFSConfig? config, this.bootstrapPeers = const []}) {
  _platform = getPlatform();
  _config =
      config ??
      IPFSConfig(
        network: NetworkConfig(enableWebTransport: true, enableWebRtc: true),
      );

  // Initialize networking components
  _router = Libp2pRouter(_config);
  _blockStore = WebBlockStore(_platform);

  // Other components initialized in start()
}