diff options
| author | Ben Beltran <ben@freshout.us> | 2013-04-03 16:49:03 -0600 |
|---|---|---|
| committer | Ben Beltran <ben@freshout.us> | 2013-04-03 16:49:03 -0600 |
| commit | b69497efe78c60742e0bb7ab5fed2b94ce89682e (patch) | |
| tree | beec3569a761e90d6f3335d4e656ddb6c16fb291 /lib/ext | |
| parent | 03501041337c5234dc12e4a84ddf063142a7857e (diff) | |
I don't know how git works (massive commit)
Diffstat (limited to 'lib/ext')
| -rw-r--r-- | lib/ext/socket_helper.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ext/socket_helper.js b/lib/ext/socket_helper.js new file mode 100644 index 0000000..661d435 --- /dev/null +++ b/lib/ext/socket_helper.js @@ -0,0 +1,7 @@ +var bindEvents = function (socket, logger) { + socket.on('log', function (logObject) { + logger.log(logObject); + }); +} + +exports.bindEvents = bindEvents; |