ServerWelcome constructor

ServerWelcome(
  1. int peer, [
  2. List<int>? peers
])

Implementation

ServerWelcome(this.peer, [List<int>? peers]) : peers = peers ?? const [] {
  if (this.peers.contains(peer)) {
    throw const FormatException(
      'welcome roster must exclude the joining peer',
    );
  }
}