0.0.4 • Published 9 years ago

angular-log v0.0.4

Weekly downloads
13
License
-
Repository
-
Last release
9 years ago

add the code to client

window.onload = function () { var e = document.createElement("script") e.setAttribute("src", "http://cdn.socket.io/socket.io-1.3.5.js") document.getElementsByTagName("body")0.appendChild(e) window.console.log = function (msg) { if (window.io && angular.isFunction(window.io)) { if (!window.clientId) { window.clientId = new Date().getTime() } if (window.socket) { window.socket.emit('message', {clientId: window.clientId, msg: msg}); } else { window.socket = io('http://192.168.31.123'); console.log(msg) } } } }

start server

    node index.js