期刊文献+

基于WebSocket协议的网页即时通信系统研究与实现

Research and implementation of Web instant communication based on WebSocket protocol
下载PDF
导出
摘要 随着用户对Web信息即时性要求的提高,一种不需要客户端,完全基于网页,提供定制化服务,在社区、论坛、电商网站中提供即时交流互动和服务的技术应运而生。对比HTTP和WebSocket 2种协议,文章设计了一种基于WebSocket协议的网页即时聊天系统,通过全双工消息传递,在浏览器和服务器之间创建了一条快速通道,实现了实时性要求,降低了服务器的资源占用率。聊天系统提供了用户登录、上线提醒、下线提醒和群发消息等功能,在保持传统B/S即时通信系统易扩展和易管理特点的同时,在带宽占用、消息收发时延方面具有显著的性能优势。 With the increasing demand of users for the immediacy of web information,a technology that does not require a client,is completely based on web pages,providing customized services,and providing instant communication,interaction,and services in communities,forums,and e-commerce websites has emerged.This article compares HTTP and WebSocket protocols and designs a web instant messaging system based on the WebSocket protocol.Through full duplex messaging,it creates a fast channel between the browser and the server,achieving real-time requirements and reducing server resource usage.The chat system provides functions such as user login,online reminders,offline reminders,and group messaging.While maintaining the scalability and ease of management of traditional B/S instant messaging systems,it has significant performance advantages in bandwidth utilization and message transmission latency.
作者 王彬 Wang Bin(Department of Information Technology,Xuzhou Finance Branch,Jiangsu Union Technical Institute,Xuzhou 221008,China)
出处 《无线互联科技》 2023年第24期4-7,共4页 Wireless Internet Technology
关键词 即时通信 长轮询 WebSocket协议 Node.js协议 Socket.io库 instant messaging long poll WebSocket protocol Node.js protocol Socket.io base
  • 相关文献

参考文献4

二级参考文献30

共引文献27

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部