Class WebsocketConstants


  • public final class WebsocketConstants
    extends Object
    • Field Detail

      • CONNECTION_KEY

        @Metadata(description="*Producer:* Sends the message to all clients which are currently connected. You can\nuse the `sendToAll` option on the endpoint instead of using this header.\n*Consumer:* Connection key identifying an individual client connection. You can save this and specify it again when routing to a producer endpoing in order to direct messages to a specific connected client.",
                  javaType="String")
        public static final String CONNECTION_KEY
        See Also:
        Constant Field Values
      • SEND_TO_ALL

        @Metadata(label="producer",
                  description="Sends the message to all clients which are currently connected. You can use the sendToAll option on the endpoint instead of using this header.",
                  javaType="Boolean")
        public static final String SEND_TO_ALL
        See Also:
        Constant Field Values
      • REMOTE_ADDRESS

        @Metadata(label="consumer",
                  description="Remote address of the websocket session.",
                  javaType="java.net.InetSocketAddress")
        public static final String REMOTE_ADDRESS
        See Also:
        Constant Field Values
      • SUBPROTOCOL

        @Metadata(label="consumer",
                  description="If a specific subprotocol was negotiated, it will be specfied in this header. Note that if you specify the \"any\" subprotocol to be supported, and a client requests a specific subprotocol, the connection will be accepted without a specific subprotocol being used. You need to specifically support a given protocol by name if you want it returned to the client and to show up in the message header.",
                  javaType="String")
        public static final String SUBPROTOCOL
        See Also:
        Constant Field Values
      • RELATIVE_PATH

        @Metadata(label="consumer",
                  description="If you specify a wildcard URI path for an endpoint, and a websocket client connects to that websocket endpoing, the relative path that the client specified will be provided in this header.\n\nFor example, if you specified `websocket://0.0.0.0:80/api/*` as your endpoint URI, and a client connects to the server at `ws://host.com/api/specialized/apipath` then `specialized/apipath` is provided in the relative path header of all messages from that client.",
                  javaType="String")
        public static final String RELATIVE_PATH
        See Also:
        Constant Field Values