Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 1 commit into from

4 participants

@web-dev

The Express example doesn't work, as the http server doesn't serve up the client JS in the example.

@devinrhode2

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

@steveWang steveWang merged commit 957e7ac into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 2 deletions.
  1. +3 −2 readme.md
View
5 readme.md
@@ -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?**
Something went wrong with that request. Please try again.