Skip to content

Commit

Permalink
Edited user_manual.md via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
ericz committed Mar 11, 2011
1 parent 9fa478a commit fb0c3e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions user_manual.md
Expand Up @@ -10,10 +10,10 @@ Setup on the server
-------------------
NowJS needs an instance of a node.js http server in order to communicate. If your application is already using an http server, NowJS can use the existing instance. Otherwise, you will need to create one. Here's an example server:

`var yourHttpServer = require('http').createServer(function(req, response){
// Serve your static files
});
yourHttpServer.listen(8080);`
var yourHttpServer = require('http').createServer(function(req, response){
// Serve your static files
});
yourHttpServer.listen(8080);

At the top of your code, place the following:
`var everyone = require("nowjs").initialize(yourHttpServer);`
Expand Down

0 comments on commit fb0c3e4

Please sign in to comment.