我如何使用WEBSOCKETS和REACT编码实时线表



使用React和Websockets的实时线图

在本教程中,我构建了一个基本的React应用,其中显示了一个折线图,该折线图使用websockets(socket.io)实时更新。您将学习如何在node.js中托管socket.io服务器,如何通过套接字将cpu使用情况发送到我们的react Web应用,以及使用图表实时显示该数据。

https://github.com/codyseibert/youtube。

4 comments
  1. Extremly Helpfull – especiially the part where you store the "currentData" – man ive been looking for hours – why my old data is not stored and overwritten! You made me very happy!

  2. I am currently working on my thesis project in which i am responsible for developing a web dashboard for an existing real-time network monitoring system. I am new to web dev and I reckon this vid is extremely helpful! Thank you!

Comments are closed.