Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update docs

  • Loading branch information...
commit aa51207f00056c6109f304090b0d20614487d5b8 1 parent e3aabd6
@contra contra authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -26,7 +26,7 @@ Pulsar uses ES5 features so be sure to include es5shim on your page.
```javascript
var Pulsar = require('pulsar');
var server = http.createServer().listen(8080);
-var pulse = Pulsar.createServer({server:server});
+var pulse = Pulsar.createServer(server);
channel = pulse.channel('test');
channel.on('ping', function (num) {
@@ -56,7 +56,7 @@ resource - change to allow multiple servers on one port (default: "default")
```javascript
var Pulsar = require('pulsar');
-var pulse = Pulsar.createServer({options});
+var pulse = Pulsar.createServer(httpServer, {options});
```
## Client Usage
Please sign in to comment.
Something went wrong with that request. Please try again.