]> git.r.bdr.sh - rbdr/cologne/blob - lib/ext/socket_helper.js
Uses global.io if no socket is provided
[rbdr/cologne] / lib / ext / socket_helper.js
1 var bindEvents = function (socket, logger) {
2 socket.on('log', function (logArgs) {
3 logger.log.apply(logger, logArgs);
4 });
5 }
6
7 exports.bindEvents = bindEvents;