Re: [nodejs] tail a log and send out using socket.io

2012-11-10 Thread Alex Kocharin
Angelo, see pupergrep ( https://github.com/bobrik/pupergrep ), I think it's does exactly the same as an app you are trying to implement.-- // alex  10.11.2012, 13:53, "Angelo Chen" :you are correct, removing broadcast works. a not so related question, in the browser side, I'd like to display only 1

Re: [nodejs] tail a log and send out using socket.io

2012-11-10 Thread Angelo Chen
you are correct, removing broadcast works. a not so related question, in the browser side, I'd like to display only 10 of the lines, if more than that, it scrolls up, what's a good approach to this? thanks. On Saturday, November 10, 2012 5:14:51 PM UTC+8, Cryptic Swarm wrote: > > You are startin

[nodejs] tail a log and send out using socket.io

2012-11-10 Thread Angelo Chen
Hi, I was trying to tail a log and send the out put to a connected browser, i can see the log data in the part of: tail_child.stdout.on('data', function (data) from console.log, but the socket.broadcast.emit seems not sending out any data, any way to make this work? thanks, Angelo part of app.js