sockjs 请求/info 应该返回什么?

小杨阿哥哥 发布于 2014/07/09 17:45
阅读 867
收藏 0

http://docs.spring.io/spring/docs/4.0.6.RELEASE/spring-framework-reference/htmlsingle/#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.

我需要自己写一个处理/info的方法吗?应该返回什么东西才是basic information。啥都没说。操蛋

加载中
0
无即是有
无即是有

自己不需要处理/info,spring自动处理了:

org.springframework.web.socket.sockjs.support.AbstractSockJsService

返回顶部
顶部