基于HTML5 WebSocket的智能手机聊天室开发
发布时间:2018-05-28 01:19
本文选题:WebSocket + 实时通信 ; 参考:《北京邮电大学》2014年硕士论文
【摘要】:在移动互联网飞速发展的今天,智能手机的覆盖率越来越高,已经成为人们接入互联网的主要入口之一,智能手机就像一个移动着的个人中心一样,人们通过它随时进行社交、娱乐甚至工作,移动互联网正在深刻的影响并改变着我们的生活。 在信息时代里,万事都追求效率,用户对实时通信的要求越来越高,比较成熟的实时通信方案主要是基于轮询技术和HTTP流方式,它们虽然实现了实时的效果,但是效率低,不适合当今越来越复杂的网络应用。同时很多实时应用都是本地APP,它的缺点是要针对不同的手机操作系统做适配,并且实现技术有一定难度,总体上开发维护成本比较高。IITML5给移动互联网带来了新的动力,是一次技术改革。智能手机的浏览器对HTML5的支持度比较好,一直以来它都是浏览网页的入口,有了HTML5以后它也有可能成为用户接触接入Web应用的第一入口,因此在智能手机上Web APP将有可能成为行业的未来。 本文分析了以往的实现实时通信方法的技术原理,了解了它们在当今互联网应用中存在的不足之后,对HTML5WebSocket这种全双工双向通信的技术进行了深入的研究,仔细研究了协议本身以及它相对于以往实现实时通信方案的优点,最后设计并实现了基于HTML5WebSocket的智能手机聊天室,通过测试用例验证各部分功能均可以正常使用,完成了基于WebSocket对实时Web APP开发的探索。
[Abstract]:With the rapid development of mobile Internet, the coverage of smart phones is becoming higher and higher, which has become one of the main entry points for people to connect to the Internet. Smart phones are like a mobile personal center, through which people can socialize at any time. Entertainment and even work, mobile Internet is profoundly affecting and changing our lives. In the information age, everything pursues efficiency, and users have higher and higher requirements for real-time communication. The more mature real-time communication schemes are mainly based on polling technology and HTTP stream mode. Although they achieve real-time effects, they are inefficient. Not suitable for today's increasingly complex network applications. At the same time, many real-time applications are local APPs. Its disadvantage is to adapt to different mobile phone operating systems, and it is difficult to implement the technology. In general, the development and maintenance cost is relatively high. IITML5 has brought new power to the mobile Internet. It was a technological reform. The smartphone browser has a good degree of support for HTML5. It has always been the portal to browse the Web. With HTML5, it may also become the first entry point for users to access Web applications. So Web APP on smartphones is likely to be the future of the industry. This paper analyzes the technical principle of realizing real-time communication methods in the past, understands their shortcomings in Internet application nowadays, and makes a deep research on HTML5WebSocket, which is a full duplex two-way communication technology. The protocol itself and its advantages compared with the previous real-time communication schemes are carefully studied. Finally, a smart phone chat room based on HTML5WebSocket is designed and implemented, and the test cases are used to verify that each part of the functions can be used normally. The exploration of real-time Web APP development based on WebSocket is completed.
【学位授予单位】:北京邮电大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TN929.5;TP311.52
【参考文献】
相关期刊论文 前7条
1 吴晓东;王鹏;;Html5的通信机制及效率的研究[J];长春理工大学学报(自然科学版);2011年04期
2 李代立;陈榕;;WebSocket在Web实时通信领域的研究[J];电脑知识与技术;2010年28期
3 康长安;陈玉红;;基于前端的Web性能优化[J];电脑知识与技术;2011年16期
4 彭涛;杨炼;;基于移动浏览器的HTML5核心技术的研究及其应用[J];广东通信技术;2012年04期
5 温照松;易仁伟;姚寒冰;;基于WebSocket的实时Web应用解决方案[J];电脑知识与技术;2012年16期
6 张剑;陈剑锋;王强;;HTML5新特性及其安全性研究[J];信息安全与通信保密;2013年05期
7 刘华星;杨庚;;HTML5——下一代Web开发标准研究[J];计算机技术与发展;2011年08期
,本文编号:1944633
本文链接:https://www.wllwen.com/kejilunwen/wltx/1944633.html