Flash 10

28 views
Skip to first unread message

Saimon Moore

unread,
Nov 30, 2009, 7:05:11 AM11/30/09
to jSocket
Hi,

Is jsocket compatible with flash 10? I'm trying out the client example
but the swf doesn't seem to have been loaded (no log messages).

Regards,

Saimon

Aidamina

unread,
Nov 30, 2009, 8:31:16 AM11/30/09
to jSocket
Hello Saimon,

The example on the wiki of the googlecode page is out of date, you
want to have a look at the examples committed in the svn trunk.

See:
http://jsocket.googlecode.com/svn/trunk/jsocket/samples/

In order for the swf to be initialized properly it has to be loaded
from the same domain as the page is where your javascript calls the
jsocket code.

if the next url is where your javascript calls jsocket
http://mydomain.com/page.html

then this are the results for the respective locations of the swf
file.
http://mydomain.com/jsocket.swf <-valid
http://mydomain.com/swf/jsocket.swf <-valid
http://subdomain.mydomain.com/jsocket.swf <-fails
http://otherdomain.com/jsocket.swf <-fails

Hope this helps,

Tjeerd Jan

Saimon Moore

unread,
Nov 30, 2009, 9:28:23 AM11/30/09
to jso...@googlegroups.com
Thanks,

I've setup an nginx virtual host and it's now loading. Now I'm getting
an error 2048. I think this is related to security. Any tips on
getting up and running quick with flash security issues?
> --
>
> You received this message because you are subscribed to the Google Groups "jSocket" group.
> To post to this group, send email to jso...@googlegroups.com.
> To unsubscribe from this group, send email to jsocket+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jsocket?hl=en.
>
>
>



--
Saimon Moore
Freelance Web Developer
(Available for hire - For details visit http://saimonmoore.net)

Skype: saimonmoore
Yahoo IM: saimonmoore
Google IM: saimonmoore

Aidamina

unread,
Nov 30, 2009, 9:39:03 AM11/30/09
to jSocket
No problem,

Glad you figured out the problem with the hosting,

Error 2048 is indeed a Security error, it expects some connection
policy information from the server.

Please be sure to check the bottom two links at:

http://code.google.com/p/jsocket/wiki/Security

Flash expects you to either serve a policy file on port 843 of your
server. Or for you to send a policy xml the second you connect to a
certain port with the socket.

Again the links provided in the Security page of the wiki provide more
in depth documentation about this feature, and also the structure of
the expected policy file.

The java example server shows you how to serve a policy file on port
843.

http://jsocket.googlecode.com/svn/trunk/jsocket/samples/server/java/basic/

Hope this will point you in the right direction.

Good luck,

Tjeerd Jan
> > For more options, visit this group athttp://groups.google.com/group/jsocket?hl=en.
>
> --
> Saimon Moore
> Freelance Web Developer
> (Available for hire - For details visithttp://saimonmoore.net)

Saimon Moore

unread,
Nov 30, 2009, 9:59:49 AM11/30/09
to jso...@googlegroups.com
thanks...I used this: http://code.google.com/p/flashpolicyd/wiki/Introduction

working now...

Are you using this in production anywhere?

I'm wondering wether to use this to forward requests to an erlang
queue server or just setup a proxy http server which then forwards to
the queue server..Just experimenting right now...
> For more options, visit this group at http://groups.google.com/group/jsocket?hl=en.
>
>
>



--
Saimon Moore
Freelance Web Developer
(Available for hire - For details visit http://saimonmoore.net)

Aidamina

unread,
Nov 30, 2009, 11:15:17 AM11/30/09
to jSocket
Nice, I hadn't seen that project yet, although I never really worked
with Ruby, so that might be why.
jSocket is still in a pre-release state, and even though the core is
pretty solid, there's still a lot of documentation missing or simply
outdated.
I haven't used it for any products of myself yet, but it will be the
main communication engine of my latest project called port pusher
(should be ready on http://portpusher.com in the next few months)

Hope jSocket can bring something to your system, and I am eager to
hear about any implementations you come up with. Feedback is always
appreciated!

Take care,

Tjeerd Jan

On Nov 30, 3:59 pm, Saimon Moore <saimonmo...@gmail.com> wrote:
> thanks...I used this:http://code.google.com/p/flashpolicyd/wiki/Introduction
>
> working now...
>
> Are you using this in  production anywhere?
>
> I'm wondering wether to use this to forward requests to an erlang
> queue server or just setup a proxy http server which then forwards to
> the queue server..Just experimenting right now...
>
>
>
>
>
> On Mon, Nov 30, 2009 at 3:39 PM, Aidamina <aidam...@gmail.com> wrote:
> > No problem,
>
> > Glad you figured out the problem with the hosting,
>
> > Error 2048 is indeed a Security error, it expects some connection
> > policy information from the server.
>
> > Please be sure to check the bottom two links at:
>
> >http://code.google.com/p/jsocket/wiki/Security
>
> > Flash expects you to either serve a policy file on port 843 of your
> > server. Or for you to send a policy xml the second you connect to a
> > certain port with the socket.
>
> > Again the links provided in the Security page of the wiki provide more
> > in depth documentation about this feature, and also the structure of
> > the expected policy file.
>
> > The java example server shows you how to serve a policy file on port
> > 843.
>
> >http://jsocket.googlecode.com/svn/trunk/jsocket/samples/server/java/b...
Reply all
Reply to author
Forward
0 new messages