<?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[Convert Array of Client to Object of Client]]></title><description><![CDATA[<p>Hi,<br />
I have an issue about find specific client for sending message. Now this.clients return an array of objects and think about 500 players seperate to 100 group need to private chat each other.<br />
Fastest Solution for this ChatBox is save Client Object to each Player and use this to send.<br />
But I think this is the course of Client leave room but the Web Socket not disconnect in <a href="https://github.com/colyseus/colyseus/issues/361" rel="nofollow">https://github.com/colyseus/colyseus/issues/361</a><br />
If I loop in the array of 500 client to find correct clients ID and send each message (1s/mess), this will be a nightmare for game performance.<br />
It would be easier if Room can get specific client with id and send it with this.clients[id].send</p>
]]></description><link>http://discuss.colyseus.io/topic/410/convert-array-of-client-to-object-of-client</link><generator>RSS for Node</generator><lastBuildDate>Fri, 09 Oct 2026 22:49:22 GMT</lastBuildDate><atom:link href="http://discuss.colyseus.io/topic/410.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Oct 2020 07:56:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Convert Array of Client to Object of Client on Tue, 20 Oct 2020 08:09:47 GMT]]></title><description><![CDATA[<p>Hi,<br />
I have an issue about find specific client for sending message. Now this.clients return an array of objects and think about 500 players seperate to 100 group need to private chat each other.<br />
Fastest Solution for this ChatBox is save Client Object to each Player and use this to send.<br />
But I think this is the course of Client leave room but the Web Socket not disconnect in <a href="https://github.com/colyseus/colyseus/issues/361" rel="nofollow">https://github.com/colyseus/colyseus/issues/361</a><br />
If I loop in the array of 500 client to find correct clients ID and send each message (1s/mess), this will be a nightmare for game performance.<br />
It would be easier if Room can get specific client with id and send it with this.clients[id].send</p>
]]></description><link>http://discuss.colyseus.io/post/1350</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1350</guid><dc:creator><![CDATA[kai_nguyenhuu]]></dc:creator><pubDate>Tue, 20 Oct 2020 08:09:47 GMT</pubDate></item></channel></rss>