FlashSocket.IO icon indicating copy to clipboard operation
FlashSocket.IO copied to clipboard

fork with several improvements

Open chatziko opened this issue 9 years ago • 10 comments

Just wanted to let you know that I've been working on several improvements over your FlashSocket.IO version (thanks a lot for the great work!), which I made available in my fork. I didn't send a PR cause it's a lot of stuff and not easily separatable, but of course feel free to pull anything.

chatziko avatar Jan 21 '16 10:01 chatziko

Hi @chatziko nice work!

I've not had reason to use socket.io with flash for a good long while now, hence why my fork is so out of date. Great to see you giving it some attention. I'll probably go with your fork next time I need to. Thank you for letting me know about it :)

The only thing I would mention, after a very quick glance, is that I had FlashSocket implement IEventDispatcher rather than extending it so that I could (optionally) use the shared EventDispatcher here with Robotlegs and so hook up commands directly from events coming through the socket.

redannick avatar Jan 21 '16 11:01 redannick

Hi @chatziko.. looks like a great contribution... If only I could get it to work. I know that I'm less than an average coder with little experience with Flash AS3 but I'd really like to get this working. I keep getting 1120: Access of undefined property JSON -- str += JSON.stringify(obj.data); I appreciate that the fault is almost certainly mine but I'd really appreciate help if you have the time. I'll happily write a dummys guide for idots like myself once I have it working Thanks in advance

dogslife avatar Feb 10 '16 14:02 dogslife

Hi @dogslife are you running this in flash player 10 by any chance? (before the JSON API was available). You should probably make a new issue for this btw, so that its' easy for others with the same issue to find the conversation.

redannick avatar Feb 10 '16 14:02 redannick

Hi @redannick - Thanks for the reply. is this the part where I start blushing with embaressement when I say Yes, I am using FlashPlayer 10 or 10.2... I've raised an issue as requested. I've been at this for 5 days now and have little hair left.... So what are my options?

dogslife avatar Feb 10 '16 15:02 dogslife

@chatziko @redannick Hey guys, could you provide a super simple gist of how this should look on the backend with node and frontend so I can get going. Just getting random IO errors at the moment.

P.S. Big robotlegs fan too :)

mikecann avatar Feb 16 '16 08:02 mikecann

Hi Mike, long time no see! I'm not really up and running with this stuff at the moment and haven't tried @chatziko 's fork yet. Presumably the setup on the server side is the same as the example code from http://socket.io though. If I get a minute I'll try to put together a working sample project.

redannick avatar Feb 17 '16 15:02 redannick

Hi @redannick :) Ye I would love a working example. I have run through the Socket.IO getting started but cant seem to get it to connect, so would love a simple example either with @chatziko's for or yours, anything that will work with AIR & Flash Web :)

mikecann avatar Feb 18 '16 00:02 mikecann

I just added a simple client and server in my fork. Instructions are here.

chatziko avatar Feb 20 '16 21:02 chatziko

Awesome! Thanks ill be sure to check this out next week!

Mike

On 21 February 2016 at 05:00, Kostas Chatzikokolakis < [email protected]> wrote:

I just added a simple client and server in my fork. Instructions are here https://github.com/chatziko/FlashSocket.IO#sample-client-and-server.

— Reply to this email directly or view it on GitHub https://github.com/redannick/FlashSocket.IO/issues/3#issuecomment-186681986 .

Mike Cann http://www.mikecann.co.uk/ @mikeysee http://www.twitter.com/mikeysee

mikecann avatar Feb 21 '16 04:02 mikecann

@chatziko.. Fantastic. Really appreciate this

dogslife avatar Feb 21 '16 09:02 dogslife