2 Replies Latest reply on Aug 11, 2009 4:58 AM by t1gershark

    Problem with XMLSocket

    t1gershark

      Hello,

       

      I've created a litte server in java, that sends messages to a connected client (both running on localhost).

      In my Flex file I've implemented such a client with the use of XMLSocket. I can send messages

      from Flex to my server but the messages send from the server are not received on the Flex side. The

      listener function is not even called.

      Where is the problem ?

       

      Thanks in advance

       public function init():void {
            socket = new XMLSocket();
            socket.addEventListener(DataEvent.DATA, dataHandler);
            socket.connect("localhost", 3333);
       }
      
       private function dataHandler(event:DataEvent):void {
            trace("Receiving: " + event);
       }