<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[On locked event]]></title><description><![CDATA[<p>Is there an locked unlocked event we can listen to or is it I need to implement my own triggers for when room is full/ maxClient reached?</p>
]]></description><link>http://discuss.colyseus.io/topic/124/on-locked-event</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Mar 2026 00:56:49 GMT</lastBuildDate><atom:link href="http://discuss.colyseus.io/topic/124.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Aug 2018 01:17:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to On locked event on Invalid Date]]></title><description><![CDATA[<p>Is there an locked unlocked event we can listen to or is it I need to implement my own triggers for when room is full/ maxClient reached?</p>
]]></description><link>http://discuss.colyseus.io/post/419</link><guid isPermaLink="true">http://discuss.colyseus.io/post/419</guid><dc:creator><![CDATA[karneaud]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to On locked event on Sun, 05 Aug 2018 17:52:35 GMT]]></title><description><![CDATA[<p>Hi <a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/137">@karneaud</a>, welcome!</p>
<p>Sure, you can listen to <code>&quot;locked&quot;</code> and <code>&quot;unlocked&quot;</code> events from inside the room handler. Example:</p>
<pre><code>class MyRoom extends Room {

  onInit () {
    this.on(&quot;locked&quot;, () =&gt; console.log(&quot;room has been locked!&quot;))
    this.on(&quot;unlocked&quot;, () =&gt; console.log(&quot;room has been unlocked!&quot;))
  }

}
</code></pre>
<p>Cheers!</p>
]]></description><link>http://discuss.colyseus.io/post/421</link><guid isPermaLink="true">http://discuss.colyseus.io/post/421</guid><dc:creator><![CDATA[endel]]></dc:creator><pubDate>Sun, 05 Aug 2018 17:52:35 GMT</pubDate></item></channel></rss>