基于WebSocket协议的网页即时通信系统研究与实现  被引量:2

Research and implementation of Web instant communication based on WebSocket protocol

在线阅读下载全文

作  者:王彬 Wang Bin(Department of Information Technology,Xuzhou Finance Branch,Jiangsu Union Technical Institute,Xuzhou 221008,China)

机构地区:[1]江苏联合职业技术学院徐州财经分院信息技术系,江苏徐州221008

出  处:《无线互联科技》2023年第24期4-7,共4页Wireless Internet Technology

摘  要:随着用户对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.

关 键 词:即时通信 长轮询 WebSocket协议 Node.js协议 Socket.io库 

分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象