How to open a server connection using Flex?

I want to open a server connection using Flex so that I can send chat messages to the Flex interface. How do I do this, and Flex applies restrictions of the same origin for ports or subdomains?

+1
flex sockets
source share
1 answer

You will need to use the 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 which server you are running on. If you are on the Java stack, you can use BlazeDS and ActiveMQ .

If you download / consume and use different domains, you need to configure the crossdomain file, which allows home connection.

+1
source share

All Articles