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.
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.