Flotype / now

NowJS makes it easy to build real-time web apps using JavaScript
http://www.nowjs.com
MIT License
1.91k stars 175 forks source link

Using now.js with Appcelerator #159

Closed scottburch closed 12 years ago

scottburch commented 12 years ago

I have found the way to use now.js with Appcelerator and wanted to document it somehow so that others can find it.

This is from theindex.html in my desktop project

    <script src="http://localhost:3000/nowjs/now.js"></script>
    <script>var nowjs = nowInitialize('http://localhost:3000',{});</script>

I'm not sure why 'now' does not work other than it calls the wrong uri and may setup two objects. But, using the noconflict method (called initialize) works great for me.

Instead of now.xxxx use nowjs.xxxx

steveWang commented 12 years ago

You should probably set autoHost in your server-side config to false, in this case. What URI does the autohosted now call?

ghost commented 12 years ago

I also have this problem and trying to figure out a solution, its a socket.io problem I believe.

ericz commented 12 years ago

If there are further issues with this, try the google group http://groups.google.com/group/nowjs?pli=1