检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:王彬 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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.117.145.188