[go: nahoru, domu]

Skip to content

janecms/websocket_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

websocket演示

知识点概要 包括若干个例子(例子多来自网络,以及apache,j2ee官方)

部署

##功能列表


(XML)编码解密处理(codec)

建议在apache-tomcat-7.0.72; 个人测试apache-tomcat-7.0.54版本不正常

Echo协议

位置 Path
Server com.sample.websocket.endpoint.EchoEndpoint
Client single_message.html
endpoint /echo

来自Tomcat官方demo

位置 Path
Server websocket.echo.EchoAnnotation(Annotation)
Server websocket.echo.EchoEndpoint(编程式声明)
Client single_message.html
endpoint1 /websocket/echoAnnotation
endpoint2 /websocket/echoProgrammatic

文件上传

在线聊天

位置 Path
Client websocket/chat.xhtml
Server websocket.chat.ChatAnnotation
endpoint /websocket/chat

相关资源(持续更新)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published