WebSocket技术在体育赛事网站中的研究与应用
发布时间:2018-08-07 20:34
【摘要】:随着Web技术的快速发展,HTML5的出现引领了一个全新的Web开发时代。WebSocket作为HTML5重要组成元素之一,也备受关注。它改变了Web应用当中客户端与服务器之间信息交互完全由客户端主导,服务器被动接受的状态,允许双方在建立稳定的连接之后,互相主动推送消息。推送信息快速、轻量,是WebSocket最主要的特征。 体育赛事类网站一般凭借及时发布比赛新闻、比分等信息吸引用户,故其对信息传输及时性的需求很大。原始的消息实时传输技术越来越无法满足网站对信息传输及时性的要求。WebSocket技术的诞生就是用来解决这样的问题的。但是作为一项新兴技术,将其应用到具体的网站项目中时,会遇到多种不同的问题。 本文以体育赛事类网站为应用背景,重点研究分析了WebSocket技术应用到具体项目当中时所需要考虑的三个问题,通过分析问题产生的根源,拟定了解决这些问题的策略。同时,根据某体育赛事网站的具体需求,本文拟定了WebSocket技术的应用策略,设计实现了一个实际的WebSocket应用系统,即某体育赛事网站的站内信系统。最后,本文通过分析总结整个设计开发过程,对WebSocket技术的应用代价进行了评估。 文章的主要内容如下:本文初段介绍了本课题的背景,即体育类赛事网站对信息传输及时性的需求;同时分析了WebSocket目前在具体应用中所存在的三个问题,即兼容性问题,连接丢失问题和应用代价问题。并且,文章也在开头处介绍了开发WebSocket应用系统所涉及到的主要技术。 接着,根据前文的问题分析,以解决三大问题为目标,文章设计并实现了WebSocket技术应用系统,并在文中列出了用来解决具体问题的主要代码。之后,通过对以上应用系统的测试,对WebSocket的性能、应用代价等做出了评估。 最后,本文总结了WebSocket技术应用的成果,并对该技术的未来发展做出了展望。 总的来说,本文主要通过将WebSocket应用到体育赛事网站当中,尝试开发了应用系统,为解决该技术所存在的问题做出了努力,并且对技术的性能等进行了评估,预计对WebSocket将来的进一步应用提供帮助。
[Abstract]:With the rapid development of Web technology, the emergence of HTML5 has led a new era of Web development. WebSocket, as one of the important components of HTML5, has also attracted much attention. It changes the information interaction between client and server in Web application which is dominated by client and passively accepted by server. It allows both sides to push messages to each other actively after establishing a stable connection. Push information fast, lightweight, is the most important feature of WebSocket. Sports events websites generally rely on the timely release of competition news, scores and other information to attract users, so it has a great demand for the timeliness of information transmission. The original real-time message transmission technology is more and more unable to meet the requirements of the website for the timeliness of information transmission. The birth of WebSocket technology is used to solve such problems. However, as an emerging technology, when applied to specific website projects, there are many different problems. This paper takes the sports events website as the application background, emphatically studies and analyzes three problems that need to be considered when the WebSocket technology is applied to the concrete project, and by analyzing the root causes of the problems, it puts forward the strategies to solve these problems. At the same time, according to the specific needs of a sports event website, this paper formulates the application strategy of WebSocket technology, and designs and implements an actual WebSocket application system, that is, the in-station trust system of a sports event website. Finally, this paper evaluates the application cost of WebSocket technology by analyzing and summarizing the whole design and development process. The main contents are as follows: at the beginning of this paper, the background of this subject is introduced, that is, the requirement of information transmission timeliness on sports events website, and the three problems existing in the application of WebSocket are analyzed, that is, compatibility problem. Connection loss problem and application cost problem. At the beginning of the article, the main technologies involved in developing WebSocket application system are introduced. Then, according to the analysis of the above problems, the paper designs and implements the application system of WebSocket technology, and lists the main codes used to solve the specific problems. After that, the performance and application cost of WebSocket are evaluated by testing the above application system. Finally, this paper summarizes the application of WebSocket technology and prospects for the future development of the technology. In general, this paper tries to develop the application system by applying WebSocket to the sports events website, makes efforts to solve the problems existing in the technology, and evaluates the performance of the technology. Further application of WebSocket is expected to be helpful.
【学位授予单位】:东华大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP393.09
本文编号:2171271
[Abstract]:With the rapid development of Web technology, the emergence of HTML5 has led a new era of Web development. WebSocket, as one of the important components of HTML5, has also attracted much attention. It changes the information interaction between client and server in Web application which is dominated by client and passively accepted by server. It allows both sides to push messages to each other actively after establishing a stable connection. Push information fast, lightweight, is the most important feature of WebSocket. Sports events websites generally rely on the timely release of competition news, scores and other information to attract users, so it has a great demand for the timeliness of information transmission. The original real-time message transmission technology is more and more unable to meet the requirements of the website for the timeliness of information transmission. The birth of WebSocket technology is used to solve such problems. However, as an emerging technology, when applied to specific website projects, there are many different problems. This paper takes the sports events website as the application background, emphatically studies and analyzes three problems that need to be considered when the WebSocket technology is applied to the concrete project, and by analyzing the root causes of the problems, it puts forward the strategies to solve these problems. At the same time, according to the specific needs of a sports event website, this paper formulates the application strategy of WebSocket technology, and designs and implements an actual WebSocket application system, that is, the in-station trust system of a sports event website. Finally, this paper evaluates the application cost of WebSocket technology by analyzing and summarizing the whole design and development process. The main contents are as follows: at the beginning of this paper, the background of this subject is introduced, that is, the requirement of information transmission timeliness on sports events website, and the three problems existing in the application of WebSocket are analyzed, that is, compatibility problem. Connection loss problem and application cost problem. At the beginning of the article, the main technologies involved in developing WebSocket application system are introduced. Then, according to the analysis of the above problems, the paper designs and implements the application system of WebSocket technology, and lists the main codes used to solve the specific problems. After that, the performance and application cost of WebSocket are evaluated by testing the above application system. Finally, this paper summarizes the application of WebSocket technology and prospects for the future development of the technology. In general, this paper tries to develop the application system by applying WebSocket to the sports events website, makes efforts to solve the problems existing in the technology, and evaluates the performance of the technology. Further application of WebSocket is expected to be helpful.
【学位授予单位】:东华大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP393.09
【参考文献】
相关期刊论文 前10条
1 吴晓东;王鹏;;Html5的通信机制及效率的研究[J];长春理工大学学报(自然科学版);2011年04期
2 文爱平;文德民;;基于IE浏览器的Ajax Comet架构[J];电脑知识与技术;2010年17期
3 李代立;陈榕;;WebSocket在Web实时通信领域的研究[J];电脑知识与技术;2010年28期
4 李慧云;何震苇;李丽;陆钢;;HTML5技术与应用模式研究[J];电信科学;2012年05期
5 何雪;;初探HTML5-下一代Web开发技术[J];计算机光盘软件与应用;2012年04期
6 余勇;;基于ASP.NET及Comet技术的WEB即时通信系统的设计与实现[J];电脑与电信;2010年09期
7 贾晓辉;郭丽;;HTML5标准与知识产权研究[J];信息技术与标准化;2012年03期
8 王江静;;Web应用的新技术HTML5[J];电脑知识与技术;2012年31期
9 梁高永;杨正华;;Web Socket的远程实时监控系统设计[J];吉首大学学报(自然科学版);2010年06期
10 曾斌;彭长根;杨辉;曾凯;姜小丽;;基于J2EE技术的企业异步通信解决方案[J];计算机工程;2006年05期
,本文编号:2171271
本文链接:https://www.wllwen.com/guanlilunwen/ydhl/2171271.html