class="summary source-code" id="source">
  <h2><span>Implementation</span></h2>
  <pre class="language-dart"><code class="language-dart">RouterBase({
  Crypto? crypto,
  List&lt;TransportBase&gt;? transports,
  this.messageTTL = const Duration(seconds: 3),
  this.keepalivePeriod = const Duration(seconds: 15),
  this.logger,
}) : crypto = crypto ?? Crypto() {
  &#47;&#47; Initialize transports with provided or default UDP transports.
  this.transports.addAll(transports ??
      [
        TransportUdp(
      