Re: [nodejs] Websockets on nodejs - Managing ws instances

2016-02-24 Thread Ray Jender
Got it. Now for some testing! Thanks again. Ray On Tuesday, February 23, 2016 at 11:01:23 PM UTC-5, Christopher Mina wrote: > > You're welcome. > > As a hint, you can look at this for managing the disconnects: > > ws.on('close', function close() { > numConnections--; > ... alert all remai

Re: [nodejs] Help with asynchronous method

2016-02-24 Thread Duy Nguyen
It works, thank you so much Chris. On Tue, Feb 23, 2016 at 11:09 PM, Christopher Mina < christopher.m...@gmail.com> wrote: > You would simply just call save and then cb(). > > > *async.each(contents, function(content, cb) { content.save(**);* > * cb();* > > > *}, function(errors) {res