接口的使用
org.springframework.web.socket.SubProtocolCapable
使用SubProtocolCapable的程序包 程序包 说明 org.springframework.web.socket.messaging WebSocket integration for Spring's messaging module.org.springframework.web.socket.sockjs.transport.handler TransportHandler
implementation classes as well as a concreteSockJsService
.org.springframework.web.socket.messaging中SubProtocolCapable的使用
实现SubProtocolCapable的org.springframework.web.socket.messaging中的类 修饰符和类型 类 说明 class
SubProtocolWebSocketHandler
An implementation ofWebSocketHandler
that delegates incoming WebSocket messages to aSubProtocolHandler
along with aMessageChannel
to which the sub-protocol handler can send messages from WebSocket clients to the application.org.springframework.web.socket.sockjs.transport.handler中SubProtocolCapable的使用
实现SubProtocolCapable的org.springframework.web.socket.sockjs.transport.handler中的类 修饰符和类型 类 说明 class
SockJsWebSocketHandler
An implementation ofWebSocketHandler
that adds SockJS messages frames, sends SockJS heartbeat messages, and delegates lifecycle events and messages to a targetWebSocketHandler
.