Permalink
Browse files

Fixed an error in the Express example code and corrected the formatting

  • Loading branch information...
1 parent 1629218 commit ff0d2166cfa8f65811b8c5d9887e14cf62dbcd4e @Josiah Josiah committed Apr 16, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 readme.md
View
@@ -59,9 +59,10 @@ A: Yes. This is 100% supported
**Q: How do I use NowJS with [Express](https://github.com/visionmedia/express)?**
A: Very easily.
+
var app = express.createServer();
- app.listen(3000);
- var everyone = require("now").initialize(app);
+ var server = app.listen(3000);
+ var everyone = require("now").initialize(server);
**Q: How do I disable WebSockets or only use xhr-polling?**

1 comment on commit ff0d216

@devinrhode2

I remember having issues with this... THANK YOU!

Please sign in to comment.