首页 | 本学科首页   官方微博 | 高级检索  
     

基于WebSocket的在线围棋对弈软件设计
引用本文:丁振凡. 基于WebSocket的在线围棋对弈软件设计[J]. 吉首大学学报(自然科学版), 2017, 38(4): 27-33. DOI: 10.3969/j.cnki.jdxb.2017.04.006
作者姓名:丁振凡
作者单位:(华东交通大学信息工程学院,江西 南昌 330013)
摘    要:将HTML5和Spring4框架相结合,以在线围棋对弈为例研究了Web实时应用开发技术:采用WebSocket实现了客户浏览器与Web服务器的消息通信;通过HTML5的Canva绘制了围棋画面;基于SockJS连接和STOMP协议,实现了发布/订阅的双向消息传输;针对棋桌选择和对弈界面所涉及的交互过程,讨论了消息主题设计、消息发送及消息内容显示处理的具体方法.该应用开发模式对于Web实时协作应用设计具有较大参考价值.


Design of Web I-go Game Software Based on WebSocket
DING Zhenfan. Design of Web I-go Game Software Based on WebSocket[J]. Journal of Jishou University(Natural Science Edition), 2017, 38(4): 27-33. DOI: 10.3969/j.cnki.jdxb.2017.04.006
Authors:DING Zhenfan
Affiliation:(School of Information Engineering,East China Jiao Tong University,Nanchang 330013,China)
Abstract:For I-go game software design,the technology is described for real-time application of HTML5 and Spring4 framework.WebSocket is used for the message communication between the client browser and the Web server,and the HTML5 Canva is used for drawing the chess board.With the establishment of SockJS connection and STOMP protocol communication,two-way message transmission based on publishing / subscribing mode is used.For the interactions involved in table choosing and game playing,the message topic designing,message sending and displaying methods are discussed.This research has great reference value for the design of real time Web application.
Keywords:HTML5  Spring4  围棋对弈  WebSocket  canvas  SockJS
本文献已被 CNKI 等数据库收录!
点击此处可从《吉首大学学报(自然科学版)》浏览原始摘要信息
点击此处可从《吉首大学学报(自然科学版)》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号