This is my first attempt of streaming, if anyones interested in having a look..
Currently its minimized at 10kb of javascript... I dont expect it to get much bigger than that (maybe 15kb max).
Stick that on a PHP server somewhere and edit the details at the bottom of irc.php
php code:
$str = new IRCStream("localhost", 6667, $_GET["nick"]);
$str->Connect();
Connect to some random irc server somewhere. The room name is hardcoded in there somewhere too.. ($this->Send("JOIN #poop");) so you might wanan change that.
Then load up stream.html in your browser. It *should* work on most browsers. I've only been able to test this with a local IRC server, though.
For me, it works in IE6 and Firefox 2. I know chrome isnt working (iframe streaming isnt working).
Currently it only recieves data and sends data via the PHP script.. you cant send messages from the client yet (im gonna start work on that now).
Thoughts?
:) locally, at least, it seems to work really smoothly.. im pretty sure it'd be quite easy to make a REALLY slick web msn client or IRC client using this technique.
EDITED: 31 Dec 2008 21:34 by MIKEE