configure method
void
configure({})
Implementation
void configure({
String? localIp,
Map<String, int>? peerPortIndex,
int? fallbackPeerPort,
bool clearFallbackPeerPort = false,
Object? upError,
bool clearUpError = false,
}) {
if (localIp != null) {
this.localIp = localIp;
}
if (peerPortIndex != null) {
_peerPortIndex
..clear()
..addAll(peerPortIndex);
_http?.close();
_http = null;
}
if (clearFallbackPeerPort) {
_fallbackPeerPort = null;
} else if (fallbackPeerPort != null) {
_fallbackPeerPort = fallbackPeerPort;
}
if (clearUpError) {
_upError = null;
} else if (upError != null) {
_upError = upError;
}
_emitPeers();
}