Titanium Community Questions & Answer Archive

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

TCPSocket

Hi all, I'm working on a TCPSocket with node.js

Here the little server script
http://pastie.org/1079880

It only display incoming message … nothing else for now …

And here my TD code
var tcp = Titanium.Network.createTCPSocket("localhost", 8124);
tcp.connect();

At this point the connexion is OK

But if I do : tcp.write("something") I have a 4s delay …
Then If I do tcp.write("something") again, nothing is displayed on server side.

I have tested the server with a JS client (node.js) and a ruby client. Both works well …

The Titanium.Network.TCPSocket seems to have a bug !!

Anyone had the same issue ?

— asked August 6th 2010 by Olivier BONNAURE
  • desktop
  • tcpsocket
0 Comments

3 Answers

  • Does the latest commit on github.com is about this bug ?

    Commit "Fixes and improvements to TCP sockets."
    Commit Link

    — answered August 8th 2010 by Olivier BONNAURE
    permalink
    0 Comments
  • I have not been able to get TCPSocket to work at all either.

    — answered August 24th 2010 by Steven Roussey
    permalink
    0 Comments
  • And me i am struggling getting this to work

    — answered August 20th 2012 by Samuel East
    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.