getPeerId static method

Future<String> getPeerId()

Get the peer ID of p2p engine. 获取P2P Engine的peer ID

Implementation

static Future<String> getPeerId() async =>
    (await _channel.invokeMethod('getPeerId')) ?? 'Unknown peer Id';