admin管理员组

文章数量:1567923

2024年6月6日发(作者:)

【毕业论文】基于HTML5 WebSocket的在线聊天系统的设计与实现

摘 要

HTML5是下一代互联网的Web标准,和以前的版本不同,HTML5并非仅仅

用来表示Web 内容,它将使Web 进入一个成熟的应用平台,在这个平台上,视频、

音频、图像和动画,以及同电脑的交互都被标准化。随着Adobe宣布停止Flash移

动版开发,不少人预言HTML5的发展将给移动互联网产业带来革命性的深刻变化。

作为新一代的网页语言,HTML5跨平台的支持得到不断增强,智能手机的迅速普

及加上资费和网络速度的逐渐松绑,也为HTML5技术提供了良好的发展环境。

这其中有“Web 的 TCP”之称的 WebSocket 格外吸引开发人员的注意。

WebSocket 的出现使得浏览器提供对 Socket 的支持成为可能,从而在浏览器和服

务器之间提供了一个基于 TCP 连接的双向通道。Web 开发人员可以非常方便地使

用 WebSocket 构建实时 Web 应用,开发人员的手中从此又多了一柄神兵利器。

本文首先分析国内外研究现状,然后介绍本文用到的关键技术的介绍以及本文

实例开发中的环境配置的方法,接下来会详细说明如何利用WebSocket技术实现一

个简单的在线聊天室,并对当中遇到的问题进行分析与解决。

本文的创新点是利用最热门的HTML5技术WebSocket结合C#的后台实现做

一个简单的聊天室,从而更加清晰地阐述HTML5的优缺点,并且提出一些应该注

意的问题和解决方法,以给后来者一些经验和教训。

【关键词】HTML5 WebSocket C# 聊天室

I

【毕业论文】基于HTML5 WebSocket的在线聊天系统的设计与实现

ABSTRACT

HTML5 is the next generation of Internet Web standards, and com in contrast with

the previous version, HTML5 is not only used to represent Web content, it will enable

the Web into a full-fledged application platform, in this platform, video, audio, images

and animations, as well as interaction with the computer are standardized. As Adobe

announced the end to support the Flash mobile version of the development, many people

predicted the development of HTML5 mobile Internet industry will bring profound

changes in the revolutionary. As a new generation of web language, HTML5

cross-platform support has been growing, the rapid adoption of smart phone plus tariff

and network speed gradually relaxed, and also provides a good environment for the

development of HTML5 technology.

The WebSocket which said of the Web's TCP is especially attractive to the attention

of developers. The WebSocket appear the browser support for Socket possible, thus a

two-way channel based on the TCP connection between the browser and the server. Web

developers can very easily use the WebSocket to build real-time Web applications, in the

hands of developers from the addition of a two-edged magic weapon.

First of all, I describes the configuration of the environment in the introduction of

key technologies used in this article, as well as examples of the development of this

article, the next will explain in detail how to use the WebSocket technologya simple

online chat rooms, and among the problems encountered in the analysis and solution.

The innovation of this paper is the use of the most popular HTML5 technology

behind the scenes to make a simple chat room WebSocket combination of C #, in order

to more clearly set forth the advantages and disadvantages of HTML5, and raise some

issues that need attention and solutions to give newcomersexperiences and lessons

learned.

【Key words】HTML5 WebSocket C# Chat Room

II

本文标签: 实现提供开发人员