on-name">callback</span>(proxy, appeared)
  <span class="keyword">if</span> appeared <span class="keyword">then</span>
    <span class="comment">-- proxy.is_connected is true
</span>    proxy:<span class="function-name">SomeMethod</span>()
  <span class="keyword">else</span>
    <span class="comment">-- proxy.is_connected is false
</span>  <span class="keyword">end</span>
<span class="keyword">end</span>
proxy = p.monitored.<span class="function-name">new</span>(opts, callback)</pre>
    </ul>

</dd>
</dl>
