6 ms·
so try https://github.com/yaronn/wopr https://github.com/yaronn/wopr
by yaronn01 10y ago
so try https://github.com/yaronn/wopr https://github.com/yaronn/wopr
- StavrosK 10y agoThat's interesting, but not very well-suited to real-time dashboards, is it? Seems to be for one-offs.
- yaronn01 10y agocurling the markup is not for realtime. sometimes you can get away with curling in a loop with some sleep, and depending on the latency / scale you will get the same effect. however blessed-contrib can also be used as a server side component where clients curl for its endpoint (which is different than curling a static markup). that way it can return a live stream of data. you would use the same approach as https://github.com/yaronn/wopr/blob/master/server/server.js#L27 https://github.com/yaronn/wopr/blob/master/server/server.js#... where your present method implementation will run in some loop / timeout and keep sending data (by calling screen.render).