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. {
        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.
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to