How to create a persistent connection using AS3 Sockets for a chat client

Posted by Vivek on Stack Overflow See other posts from Stack Overflow or by Vivek
Published on 2010-06-05T10:38:18Z Indexed on 2010/06/05 10:42 UTC
Read the original article Hit count: 285

Filed under:
|
|
|
|

I want to create a chat client in flash/flex for a chat server,something like a MUD/MOO client but I'm unable to create a persistent connection . I've been using the AS3 Socket class,but I'm getting disconnected from the server side,soon after the connection is made but the client still shows the 'connected' property as true .The server is asynchronous and was written in python using asyncore/asynchat, it works fine with most open source MOO/MUD clients . I tried connecting my program to a simple synchronous echo server,here both read and write worked fine with no disconnections from either side . So my question is how do I make a persistent connection with the server?

© Stack Overflow or respective owner

Related posts about python

Related posts about flex