I am connecting to an existing irc server from my site. I have a couple of listeners that keep logging the data to the console. My problem is how to pass this data to the ejs file without rendering the file again and again.
irc.addListener('kick', function (channel, who, by, reason) {
console.log('%s was kicked from %s by %s: %s', who, channel, by, reason);
});
This is the code that keeps logging the data to the console. I need to send the variables to the view whenever there is some event