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

Reply via email to