Module hook - 'client created'
authorDarren <darren@darrenwhitlen.com>
Mon, 23 Sep 2013 19:10:01 +0000 (20:10 +0100)
committerDarren <darren@darrenwhitlen.com>
Mon, 23 Sep 2013 19:10:01 +0000 (20:10 +0100)
server/weblistener.js

index 25d2688650d3e1e4f4cd2e0191b976d5a8e00809..64424ae95819daf241b6a8a37dd469ef982b81d9 100644 (file)
@@ -91,6 +91,9 @@ var WebListener = module.exports = function (web_config, transports) {
             });
 
             that.emit('connection', client);
+
+            // Call any modules listening for new clients
+            global.modules.emit('client created', {client: client});
         });
     });
 };