Skip to content

Commit

Permalink
note about send and recv spec
Browse files Browse the repository at this point in the history
  • Loading branch information
darkhelmet committed Dec 2, 2010
1 parent bbf9ec8 commit 3e691e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -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));
Expand Down

0 comments on commit 3e691e1

Please sign in to comment.