</span><span class="n">disconnect</span><span class="p">()</span>
</pre></div>
</div>
<p>The <a class="reference external" href="https://ngrok.github.io/ngrok-python/ngrok_listener.html">close</a> method on a listener will shut it down, and also stop the ngrok session if it is no longer needed. This method returns a promise that resolves when the listener is closed.</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="k">await</span> <span class="n">listener</s