Hi,

I have achieved the aim by using the setInterval function hehe

Greetings and thanks for your interest!

Theodore E Patrick escribió:

>Alberto,
>
>The onConnect callback receives a Boolean flag True if connected and False
>if not connected. When false just reconnect.
>
>
>function onConnect(connected){
>
>       if (connected){
>               
>               //connected
>       
>       }else{
>
>               Sock.connect( Sock.server , Sock.port )
>
>       }
>
>}
>
>Although, when connected is false it return with a slight delay, so you
>might just connect there.
>
>
>  
>
>>-----Original Message-----
>>From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
>>Behalf Of Alberto Albericio Salvador
>>Sent: Wednesday, July 13, 2005 6:46 AM
>>To: flexcoders@yahoogroups.com
>>Subject: [flexcoders] XMLsocket behaviour
>>
>>Hi all,
>>
>>In my Flex application, I use XMLsocket to receive some server msgs.
>>
>>onConnect, onClose, etc events work fine but, when I cant connect to the
>>socket, how can I tell mySocket to try reconnecting every, lets say, 20
>>seconds?
>>
>>I want something like : .onNotConnected = function () { ... } every 20
>>seconds :)
>>
>>Thanks all in advance!
>>
>>--
>>Alberto Albericio Salvador
>>Aura S.A. Seguros
>>Departamento Informática
>>
>>
>>
>>--
>>Flexcoders Mailing List
>>FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>>Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>>Yahoo! Groups Links
>>
>>
>>
>>
>>    
>>
>
>
>
>
>--
>Flexcoders Mailing List
>FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>  
>


-- 
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to