Permalink
Browse files

bump to 0.5 and readme notes about .use()

  • Loading branch information...
1 parent eca9f20 commit f2d386da224da248477bda09746572046c0a4408 @substack committed Jan 26, 2011
Showing with 11 additions and 2 deletions.
  1. +9 −0 README.markdown
  2. +2 −2 package.json
View
@@ -70,6 +70,15 @@ object in any order. The block function if present will be executed with the
remote object and the connection object once the remote object is ready for each
client.
+use(middleware)
+---------------
+
+You can write your own dnode middleware with `.use()`. The `middleware` function
+you pass will be called just like the constructor function that `dnode()` takes.
+You can modify `this`, `remote`, and `conn` objects after the instance computed
+with the `dnode()` constructor executes but before the methods are sent over the
+wire.
+
Examples
========
View
@@ -1,7 +1,7 @@
{
"name" : "dnode",
- "version" : "0.4.5",
- "description" : "JSON-based asynchronous RMI between nodes and the browser. Throw callbacks around like nobody's business.",
+ "version" : "0.5.0",
+ "description" : "Call remote methods and callbacks with a JSON-based protocol. RMI for network sockets and the browser too!",
"modules" : {
"index" : "./lib/dnode",
"web" : "./lib/web"

0 comments on commit f2d386d

Please sign in to comment.