disconnectFromPeer method

Future<void> disconnectFromPeer(
  1. String peerIdOrAddr
)

Returns a Future that completes when the node gracefully disconnects from a peer identified by peerIdOrAddr.

Implementation

Future<void> disconnectFromPeer(String peerIdOrAddr) =>
    _networkManager.disconnectFromPeer(peerIdOrAddr);