Skip to content

Commit

Permalink
Add transports to FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
ericz committed Sep 19, 2011
1 parent e15a5b0 commit 7fac289
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions readme.md
Expand Up @@ -63,6 +63,12 @@ A: Very easily.
app.listen(3000);
var everyone = require("now").initialize(app);

**Q: How do I disable WebSockets or only use xhr-polling?**

A: You can specifiy exactly which transports to use as an initialization options as follows:
var nowjs = require("now");
var everyone = nowjs.initialize(yourHttpServer, {socketio: {transports: ['xhr-polling', 'jsonp-polling']}});


**Q: Error: " SyntaxError: Unexpected token *" / Can I statically host the now.js file?**

Expand Down

0 comments on commit 7fac289

Please sign in to comment.