我如何使用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.