WebSocket+STOMP+SockJS
来源:互联网 发布:unity3d资源包 编辑:程序博客网 时间:2024/05/14 08:56
WebSocket
https://www.w3.org/TR/websockets/
The WebSocket protocol defines two types of messages, text and binary, but their content is undefined. It’s expected that the client and server may agree on using a sub-protocol (i.e. a higher-level protocol) to define message semantics. While the use of a sub-protocol with WebSocket is completely optional either way client and server will need to agree on some kind of protocol to help interpret messages.
WebSocket sub-protocols
the WebSocket RFC defines the use of sub-protocols
https://tools.ietf.org/html/rfc6455#section-1.9
STOMP
STOMP is a simple text-orientated messaging protocol.
STOMP is widely supported and well suited for use over WebSocket and over the web.
STOMP是一种简单的消息协议,非常合适用作WebSocket的子协议
http://jmesnil.net/stomp-websocket/doc/
SockJS
https://github.com/sockjs/sockjs-client
使用SockJS作为客户端,当浏览器不支持websocket时,会使用长轮询等方式。
The SockJS client begins by sending “GET /info” to obtain basic information from the server. After that it must decide what transport to use. If possible WebSocket is used. If not, in most browsers there is at least one HTTP streaming option and if not then HTTP (long) polling is used.
Chrome 可以在引用sockjs文件前禁用websocket,从而看到长轮询的效果。
window.WebSocket = null;
- WebSocket+STOMP+SockJS
- AngularJs + sockjs + stomp 报错websocket连接失败
- Spring WebSocket+SockJS+Stomp实现一对一、一对多通信
- Spring WebSocket+SockJS+Stomp实现一对一、一对多通信
- WebSocket-SockJS
- Using Spring 4 WebSocket, sockJS and Stomp support to implement two way server client communication
- 使用maven搭建XML风格的Spring MVC+WebSocket+sockjs+STOMP+ActiveMQ应用
- spring+stomp+webSocket+SockJS 实现简单的订阅广播消息和订阅个人消息
- 使用maven搭建XML风格的Spring MVC+WebSocket+sockjs+STOMP+ActiveMQ应用
- Spring boot:WebSocket+SockJS+Stomp实现广播和点对点消息传送
- WebSocket+SockJs+STMOP
- WebSocket与STOMP介绍
- STOMP Over WebSocket原文
- Spring websocket stomp
- STOMP-WebSocket中文文档
- websocket 、stomp关系
- SpringWebsocket +Stomp+SockJS实现消息订阅和推送
- stomp.min.js(stomp协议的客户端脚本)、sockjs.min.js(SockJS的客户端脚本)以及jQuery
- 学钱帮项目
- 让Android应用程序申请获取ROOT权限
- 王学岗Retrofit初探(三)——json的数据
- day05 this指针和常函数、析构函数(Destructor) 、拷贝构造和拷贝赋值
- Spring中bean的作用域与生命周期
- WebSocket+STOMP+SockJS
- day06 静态成员、成员指针、操作符重载
- maven 生产环境、开发环境替换配置文件打包
- day07 操作符重载、类型转换操作符
- Xbox负责人谈为何不支持VR:过度关注VR很危险
- tp5面包屑
- Android Activity
- 沙盒路径(OC)
- day08