So I googled around it and learnt that I should use Rocketchat:Streamer package.
I am trying to use this package but not able to get it working per my needs. As long as I keep streamer initialization and keep using streamer.emit() and streamer.on() from inside lib folder of my project, I can send and receive messages via browser console. As soon as I try to use .emit() from server folder and .on() in client folder, it just stops working. I need to send progress data from server to all logged in clients.
I may be doing some silly mistake to get that package work from server to client but I am not sure what that may be.