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 | bdedb5e54032363de8afa322fadae0e2cb2132d0 (patch) | |
| tree | 0e820ffab7a63f77dc72cb62e5cb579e09d26014 /lib/ext | |
| parent | 08ce17a6d30a2f40459a4eecc7db20e1931046f9 (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; |