Messenger-pool - Fast Node.js json over tcp connection pool
Installation
npm install messenger-pool
this package is based on Messenger.js the syntax is the same, only this repo supports both a single connection, and a connection pool
this packege uses node-pool to do the connection pooling
Example:
var messenger = ;var poolOptions = max : 10 min : 2 idleTimeoutMillis : 30000; var client = messenger;var server = messenger; server; ;
Output:
> 'you':'got it'> 'you':'got it'> ...etc...
more examples, and syntax for single connection without pooling could be found in Messenger.js docs
all optional and default values for poolOptions could be found in node-pool docs