Interface SubProtocolHandler

  • All Known Implementing Classes:
    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.

    Since:
    4.0
    Author:
    Andy Wilkinson, Rossen Stoyanchev