Hi Ian,
Thanks for the reply. I really appreciate it!
I am developing a Titanium mobile app, which I think is running js from a native phone environment. So it is a mobile-to-server application and I am following this
, which works fine when I run node my machine but failed to connect remote node server.
I can establish the connection by now.initialise() from phone,
now = nowjs.nowInitialize('//127.0.0.1:8080',{}); but it will fail connecting to a real server.
But the weird thing is I am also serving a webpage running nowjs, which you can try
http://strong-stream-4567.herokuapp.com/ , for testing, and that part always works. But I just cannot connect from phone. I also tried nodejitsu and AWS and the same thing happened. Webpage works but not the mobile client, which only works with localhost. But for AWS, I can connect the server using
var nowjs = require('../../lib/nodeclient/now.js');
I am wondering what has changed from localhost to a real server..
Regards,
Qiao Liang