Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

note about send and recv spec

  • Loading branch information...
commit 3e691e152814cc2a6850be5c4b2edeff60ddec16 1 parent bbf9ec8
@darkhelmet darkhelmet authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  README.md
View
3  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));
Please sign in to comment.
Something went wrong with that request. Please try again.