摘要
传统的Web实时系统通常采用页面定时请求后台数据的方式实现,实时性不高,传输数据量大。Web Socket协议是基于TCP的一种新的网络协议。它实现了浏览器与服务器全双工通信,允许服务器主动发送信息给客户端。本文通过采用Web Socket技术以及增量数据返回算法,减少传输时间,提高数据监控的实时性。
Traditionally web real-time system usually requests the data backend on fixed time, but the real-time is not good and data size of transmis- sion is big. WebSocket is a kind of new network protocol based on TCP. It makes full-duplex communication come true and allow the server send data to clients forwardly. This artical is to adopt WebSocket technology and the algorithm of returning part of data incremently.
出处
《电子世界》
2018年第2期128-129,共2页
Electronics World