l">Packet</a></span> <span class="parameter-name">packet</span></span></li>
</ol>)

      <div class="features"><span class="feature">override</span></div>

    </section>
    
<section class="desc markdown">
  <p>Handles incoming packets.</p>
<p>This method is called when a new packet is received. It first calls the
superclass's <code>onMessage</code> method to handle the packet. Then, it updates
the peer status to online and returns the packet.</p>
<p><code>packet</code> The incoming packet.</p>
<p>Return