Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

TCP Socket connections and Blobs

I'm trying to get the text that has been sent down a socket connection to me. Documentation dictates that this should work, but it doesn't:

TCPconnection.addEventListener('read',function(e){
    alert(e.data.toString());
});

Anyone have any suggestions - this is really frustrating.

— asked June 3rd 2010 by Rory Gilchrist
  • blob
  • connection
  • documentation
  • ipad
  • iphone
  • socket
  • tcp
  • tostring
0 Comments

1 Answer

  • Accepted Answer

    i had the same problem the last 24 hours …and , in a randomly act of desperation, i just find the answer! try with:

    TCPconnection.addEventListener('read',function(e){
         alert( e.data.text.toString() );
    });
    

    hope it works for you as well.

    — answered June 4th 2010 by web@multimediacr.com web@multimediacr.com
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.