Permalink
Browse files

Merge pull request #193 from web-dev/patch-1

Fixed an error in the Express example code and corrected the formatting
  • Loading branch information...
2 parents 1629218 + ff0d216 commit 957e7ac7f86ab60163dc5566653c186971f5ad09 @steveWang steveWang committed Apr 23, 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?**

0 comments on commit 957e7ac

Please sign in to comment.