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