« Return to Thread: q: rejectClient(msg);

Re: q: rejectClient(msg);

by Walter Tak :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
If you mean with this message (warning: request for a bit more information next time you post something, please) ; how can I detect in Flash if a client is being rejected by Red5 (disconnected) rather than a failed netconnection then the answer so far is ; not.
 
Unless it has been changed (maybe someone can verify) you cannot pass variables/parameters with the rejectClient method like an error code.
 
The easiest thing to do is:
 
1. invoke a method on the client with an error-code/message
2. let the client disconnect itself after that message
3. queue the id of the client on the server
4. let the server disconnect all clients in the queue in a scheduler
 
Used this approach and it works like a charm.
 
Make sure you check if a client still is connected else you might see some exceptions while trying to disconnect a client that isn't there anymore.
 
 
 
----- Original Message -----
From: tomabroad@...
To: red5@...
Sent: Thursday, 09 July 2009 21:18
Subject: [Red5] q: rejectClient(msg);

how do i interprete/ catch/ consume this in flash?

thx
tom


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


Internal Virus Database is out-of-date.
Checked by AVG.
Version: 7.5.560 / Virus Database: 270.12.26/2116 - Release Date: 15-05-09 06:16

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 « Return to Thread: q: rejectClient(msg);