Hi Arunoda, Thanks for the suggestion. I will probably do that in the end.
But currently I hope I can get the current implementation work first. What are the major change of environment from localhost to server? I have tried AWS/heroku/nodejitsu and got the same problem. Regards, Qiao Liang On Monday, 2 July 2012 04:23:56 UTC+8, Arunoda Susiripala wrote: > > Mee too. > Just use socket.io > > What you get from nowJs for a chat server is quite low. > > On Mon, Jul 2, 2012 at 1:31 AM, Marak Squires <[email protected]>wrote: > >> I'd suggest not using NowJS and use raw socket.io instead. >> >> >> On Sat, Jun 30, 2012 at 9:53 PM, Leon <[email protected]> wrote: >> >>> I am building a chat server using a library call now.js which utilize >>> socket.io. >>> >>> The problem is I am access the server from a native client using >>> https://gist.github.com/**2782536 <https://gist.github.com/2782536> instead >>> of a browser. I manage to make it work while running local host using port >>> 8080. But after deploying to nodejitsu or heroku, I cannot run successfully. >>> >>> " now = >>> nowjs.nowInitialize(http://m4l_qiaoliang_**chat.jit.su<http://m4l_qiaoliang_chat.jit.su/>:80, >>> >>> {})" would get undefined. >>> >>> The thing is I am also serving a web page just for testing purpose and >>> it works fine, >>> http://m4l_qiaoliang_**chat.jit.su/<http://m4l_qiaoliang_chat.jit.su/>. >>> Yet I cannot establish connection from native client. What might be the >>> difference from localhost to nodejitsu apart from port number? The web page >>> runs fine. >>> >>> >>> >>> I init nowjs from local files. >>> var nowjs = require('../../lib/nodeclient/**now.js'); >>> >>> I am running the most up-to-date socket.io. 0.9.6 >>> >>> Any suggestion would be greatly appreciated. >>> >>> Thank you >>> >>> -- >>> Job Board: http://jobs.nodejs.org/ >>> Posting guidelines: >>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >>> You received this message because you are subscribed to the Google >>> Groups "nodejs" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/nodejs?hl=en?hl=en >>> >> >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> > > > > -- > Arunoda Susiripala > > @arunoda <http://twitter.com/arunoda> > <http://gplus.to/arunoda>https://github.com/arunoda > http://www.linkedin.com/in/arunoda > > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
