# Socketserver + As3Client

**URL:** <https://forum.kirupa.com/t/socketserver-as3client/324581>\
**Category:** open source\
**Created:** [August 28, 2011, 1:48pm UTC](https://forum.kirupa.com/t/socketserver-as3client/324581 "2011-08-28T13:48:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RvGaTe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rvgate/32/126_2.png) [@RvGaTe](https://forum.kirupa.com/u/RvGaTe)\
**Post date:** [August 28, 2011, 1:48pm UTC](https://forum.kirupa.com/t/socketserver-as3client/324581/1 "2011-08-28T13:48:54Z")

</div>

Heya,

For some old folks over here at kirupa, some might remember me from [this thread](http://www.kirupa.com/forum/showthread.php?65971-New-Chat-for-the-Forums!).

That was in 2004, in 2009 I tried to recreate the socket for general usage (for noobs) and managed to create one. But never actually got to use it myself after I noticed some flaws, noted below.

Today I was browsing the server side forums, and noticed how many people are still trying to do this in PHP. And mostly I see confusing code with many many bugs. So I decided to share my old code and hopefully help some people out.

Also I would love to see what you people can create from this. Everything is free to use and I will not make any efford to modify this (delivered as is), not because I dont want to, but more because I dont have time for this… Also, on the side-note, I’m working on a new version wich has a completely different approach.

Anyways… check out the source code, try to use it, and hopefully you can create awesome stuff.

Here come the flaws, haha;

1. The as3 client is \*\*\*\*ty as hell and undocumented! Not using proper events etc. (I was a noob back then, still am). I’m sure some as3 pro’s can create a better version.
2. The server and client use a custom protocol to communicate, back then I thought it had to use XML, but XML can fail in so many cases when sending over user input (if anyone remembers the chat ;))
3. Performance, can reach 100% cpu usage on the server. Gogo endless loops+php.
4. Partly using code conventions.
