Permalink
Browse files

documentation for how to make this work with express/connect.

  • Loading branch information...
1 parent 93eb565 commit 0949eafc45966ea3d67cf4847183d27b4907f6bd @dominictarr dominictarr committed Aug 15, 2012
Showing with 22 additions and 0 deletions.
  1. +22 −0 README.markdown
View
@@ -136,6 +136,28 @@ Then open up `localhost:9999` in your browser and you should see:
beep => BOOP
```
+with express or connect
+-----------------------
+
+you must pass the return value of `app.listen(port)`
+
+``` js
+var shoe = require('shoe');
+
+var express = require('express')
+var app = express()
+
+var sock = shoe(function (stream) { ... });
+
+// *** must pass expcess/connect apps like this:
+sock.install(app.listen(9999), '/dnode');
+```
+
+Then open up `localhost:9999` in your browser and you should see:
+
+
+```
+
browser methods
===============

0 comments on commit 0949eaf

Please sign in to comment.