Cheetah: Keeping track of multiple connected clients

aberba via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 16 15:39:16 PDT 2017


On Tuesday, 16 May 2017 at 21:56:16 UTC, aberba wrote:
> On Tuesday, 16 May 2017 at 17:49:07 UTC, bauss wrote:
>> [...]
>
> It really awesome the way you responded quickly. About 
> targeting a client, suppose I have clients A, B, and C.
>
> Message can be broadcast to all using above solution. But in 
> case A want to sent message to B and not C, how does server 
> detect the specific destination client's id? Does 
> client.send(...) allow json string with target id from browser 
> client?
>
> I'm trying to find a way to receive meesage in one language 
> along with target client's id and send to the target after I 
> have translated to another lang.

The client is a browser socket using WebScoket() api. Or does 
cheetah only work with its D client?


More information about the Digitalmars-d-learn mailing list