Skip to content
Browse files

Add transports to FAQ

  • Loading branch information...
1 parent e15a5b0 commit 7fac289ab171251f9324e3ab42dd762990e9bb9b @ericz ericz committed
Showing with 6 additions and 0 deletions.
  1. +6 −0
@@ -63,6 +63,12 @@ A: Very easily.
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?**

0 comments on commit 7fac289

Please sign in to comment.
Something went wrong with that request. Please try again.