UNPKG

actioncable-modules

Version:

Fork of ActionCable client patched for proper module support

19 lines (17 loc) 450 B
var slice = [].slice; module.exports = { startDebugging: function() { return this.debugging = true; }, stopDebugging: function() { return this.debugging = null; }, log: function() { var messages; messages = 1 <= arguments.length ? slice.call(arguments, 0) : []; if (this.debugging) { messages.push(Date.now()); return console.log.apply(console, ["[ActionCable]"].concat(slice.call(messages))); } } };