接口 SubProtocolHandler

  • 所有已知实现类:
    StompSubProtocolHandler

    public interface SubProtocolHandler
    A contract for handling WebSocket messages as part of a higher level protocol, referred to as "sub-protocol" in the WebSocket RFC specification. Handles both WebSocketMessages from a client as well as Messages to a client.

    Implementations of this interface can be configured on a SubProtocolWebSocketHandler which selects a sub-protocol handler to delegate messages to based on the sub-protocol requested by the client through the Sec-WebSocket-Protocol request header.

    从以下版本开始:
    4.0
    作者:
    Andy Wilkinson, Rossen Stoyanchev