Annotation Interface ServerWebSocket


@Documented @Retention(RUNTIME) @Target({TYPE,ANNOTATION_TYPE}) @WebSocketComponent @DefaultScope(jakarta.inject.Singleton.class) public @interface ServerWebSocket
Annotation declared on the server to indicate the class handles web socket frames.
Since:
1.0
  • Element Details

    • value

      @AliasFor(member="uri") @AliasFor(annotation=WebSocketComponent.class,member="value") @AliasFor(annotation=WebSocketComponent.class,member="uri") String value
      Returns:
      The URI of the action
      Default:
      "/ws"
    • uri

      @AliasFor(member="value") @AliasFor(annotation=WebSocketComponent.class,member="value") @AliasFor(annotation=WebSocketComponent.class,member="uri") String uri
      Returns:
      The URI of the action
      Default:
      "/ws"
    • version

      @AliasFor(annotation=WebSocketComponent.class, member="version") WebSocketVersion version
      Returns:
      The WebSocket version to use to connect
      Default:
      V13
    • subprotocols

      String subprotocols
      Returns:
      A csv of the supported subprotocols
      Default:
      ""