ClientEndpoint (WebSocket 2.1 API Documentation - Apache Tomcat 10.1.54)
Description: declaration: package: jakarta.websocket, annotation type: ClientEndpoint

# Annotation Type ClientEndpoint

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

- ## Optional Element Summary

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

- ## Element Details

  - ### subprotocols

    String[] subprotocols
    Default:
      `{}`

  - ### decoders

    Class<? extends Decoder>[] decoders
    Default:
      `{}`

  - ### encoders

    Class<? extends Encoder>[] encoders
    Default:
      `{}`

  - ### configurator

    Class<? extends ClientEndpointConfig.Configurator> configurator
    Default:
      `jakarta.websocket.ClientEndpointConfig.Configurator.class`