DLauer
DLauer

Reputation: 1302

How do I open a connection back to the server using Flex?

I want to open a connection back to the server using Flex so I can stream chat messages to the Flex front-end. How do I do this and does Flex enforce any same-origin restrictions on ports or subdomains?

Upvotes: 1

Views: 335

Answers (1)

Christophe Herreman
Christophe Herreman

Reputation: 16085

You'll have to use a messaging server software and then use the Producer and Consumer classes in the Flex framework to send and receive messages.

What you need depends on what server you are running on. If you are on a Java stack, you can use BlazeDS and ActiveMQ.

If you are streaming/consuming from and to different domains, you'll need to setup a crossdomain file that allows the inter-domain communication.

Upvotes: 1

Related Questions