论文部分内容阅读
随着即时通讯的发展,WebSocket应用越来越广泛,它实现了浏览器与服务端之间的双向通信。过去很多网站都使用长轮询技术实现即时通讯,但是应用过程中,长轮训有很多弊端,比如资源消耗大,实时性低,严重影响系统性能,而WebSocket恰恰解决了这一问题。本文结合监控平台阐述如何通过WebSocket技术,实现服务端与多客户端进行数据通信。
With the development of instant messaging, the WebSocket application is more and more widely used, which realizes two-way communication between the browser and the server. In the past, many websites used long-polling technology to implement instant messaging. However, long-time training has many drawbacks in the application process, such as resource consumption and low real-time performance, seriously affecting system performance. WebSocket precisely solved this problem. This article explains how to use WebSocket technology to realize data communication between server and multi-client based on monitoring platform.