ClientEndpoint (WebSocket 2.0 API Documentation - Apache Tomcat 10.0.27)

Package jakarta.websocket

## Annotation Type ClientEndpoint

-     @Retention(RUNTIME)
      @Target(TYPE)
      public @interface ClientEndpoint

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element | Description
    --- | --- | ---
    `java.lang.Class<? extends ClientEndpointConfig.Configurator>` | `configurator` |
    `java.lang.Class<? extends Decoder>[]` | `decoders` |
    `java.lang.Class<? extends Encoder>[]` | `encoders` |
    `java.lang.String[]` | `subprotocols` |

- - ### Element Detail

    - #### subprotocols

          java.lang.String[] subprotocols

      Default:
        {}

  - - #### decoders

          java.lang.Class<? extends Decoder>[] decoders

      Default:
        {}

  - - #### encoders

          java.lang.Class<? extends Encoder>[] encoders

      Default:
        {}

  - - #### configurator

          java.lang.Class<? extends ClientEndpointConfig.Configurator> configurator

      Default:
        jakarta.websocket.ClientEndpointConfig.Configurator.class