Skip to content

Loading…

Update Readme.md #1

Closed
wants to merge 1 commit into from

2 participants

@juliangruber

No description provided.

@mscdex

This can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 30, 2013
  1. @juliangruber

    Update Readme.md

    juliangruber committed
Showing with 3 additions and 4 deletions.
  1. +3 −4 Readme.md
View
7 Readme.md
@@ -1,4 +1,3 @@
-
# axon-rpc
RPC client / server for [axon](https://github.com/visionmedia/axon).
@@ -38,9 +37,9 @@ rep.bind(4000);
Expose a single method `name` mapped to `fn` callback.
```js
-server.expose('add', function(function(a, b, fn){
+server.expose('add', function(a, b, fn){
fn(null, a + b);
-}));
+});
```
### Server#expose(object)
@@ -127,4 +126,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Something went wrong with that request. Please try again.