From 3e691e152814cc2a6850be5c4b2edeff60ddec16 Mon Sep 17 00:00:00 2001 From: Daniel Huckstep Date: Wed, 1 Dec 2010 21:24:12 -0700 Subject: [PATCH] note about send and recv spec --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a8de791..e69ead7 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,9 @@ Use it in your code: var mongrel2 = require('mongrel2'); + // mongrel2.connect(recv_spec, send_spec, identify, callback) + // recv_spec is what you configure as your send_spec in your mongrel2.conf + // send_spec is vice versa mongrel2.connect('tcp://127.0.0.1:9997', 'tcp://127.0.0.1:9996', 'test', function(msg, reply) { // do some logic reply(200, { 'Content-Type': 'text/plain' }, "Hello, World!\n" + JSON.stringify(msg));