[Red5] best way to notify clients the server has restarted

Dan Rossi spam at electroteque.org
Tue Aug 29 04:23:59 EDT 2006


Sascha wrote:
> Dan Rossi schrieb:
>   
>> hi, i was wondering what the most efficient way would be to notify 
>> clients when the server has restarted, as if i restart the server 
>> after some kind of change the clients just hang until refresh. 
>> Obviouslly on app start i wouldnt be able to notify "currently" 
>> connected clients.
>>
>>     
>
> uhm, when you restard the server you will kill all connections,
> so when it is restarted its a lil bit to late to inform the client, or 
> does a connection will be rebuild after a closing?
> if yes iam ever did something wrong untill now.
>
> but u could use this coude client sided:
>
> [code]
>     nc_instance_name.onStatus = function(info) {
>         if (info.code == "NetConnection.Connect.Success") {
>             //blabla your code goes here
>         } else {
>             trace("ERROR on NC : " + info.code)
>         }
>     }
> [/code]
>
> greetz Sascha
>
>   

Woops excuse me, it does send a closed event

NetConnection.Connect.Closed

Yeh i use a fair few events in a switch handler.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20060829/7629a939/attachment.htm


More information about the Red5 mailing list