s the incoming packet.</p>
</section>


    
<section class="summary source-code" id="source">
  <h2><span>Implementation</span></h2>
  <pre class="language-dart"><code class="language-dart">@override
Future&lt;Packet&gt; onMessage(Packet packet) async {
  &#47;&#47; Call the superclass&#39;s onMessage method to handle the packet.
  await super.onMessage(packet);

  &#47;&#47; Update the peer status to online.
  _lastSeenController.add((peerId: packet.srcPeerId, isOnline: true));

  &#47;&#47; Return the pa