摘要
为提高B/S架构下即时通信系统的能力及效率,分析了以HTTP的全双工流技术(BOSH)为代表的传统B/S架构下服务器信息推送技术,研究了基于Web Socket的面向长连接信息通信技术。整合了Web Socket协议与可扩展通讯表示协议(XMPP),实现了一套基于Web Socket和XMPP的即时通信系统,支持基于XMPP的B/S架构下长连接会话保持、即时消息主动推送、状态感知功能。实验结果表明,基于Web Socket的即时通信系统比基于传统技术的即时通信系统在带宽占用、消息收发时延方面具有显著的性能优势。
To improve the ability and efficiency of instant messaging in B/S structure,the traditional Server-Side information push technology,especially the Bidirectional-streams Over Synchronous HTTP(BOSH) technology is ana-lyzed,and the infocommunications under persistent connection technology based on WebSocket is studied.The Web-Socket protocol and the Extensible Messaging and Presence Protocol(XMPP) is combined to design and implement an instant messaging system based on WebSocket and XMPP,which supports persistent connection based on XMPP in B/S structure,Server-Side information push and state aware.Experimental results shows that the instant messaging system based on WebSocket saves more bandwidth and has less time-delay than the instant messaging system based on tradi-tional technology.
出处
《软件》
2015年第3期89-94,共6页
Software