X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/blobdiff_plain/03501041337c5234dc12e4a84ddf063142a7857e..b69497efe78c60742e0bb7ab5fed2b94ce89682e:/lib/ext/socket_helper.js?ds=inline 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;