Interface WsClientProtocolConfig

All Superinterfaces:
NamedService, ProtocolConfig, Prototype.Api, WsProtocolConfig
All Known Implementing Classes:
WsClientProtocolConfig.BuilderBase.WsClientProtocolConfigImpl

public interface WsClientProtocolConfig extends Prototype.Api, WsProtocolConfig
WebSocket client protocol configuration.
See Also:
  • Method Details

    • builder

      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static WsClientProtocolConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static WsClientProtocolConfig create()
      Create a new instance with default values.
      Returns:
      a new instance
    • type

      default String type()
      Description copied from interface: NamedService
      Type of this implementation, to distinguish instances of same type, with different NamedService.name(). Use for example ConfiguredProvider.configKey() to define the type.
      Specified by:
      type in interface NamedService
      Returns:
      type of this service
    • name

      String name()
      Name of this protocol configuration.
      Specified by:
      name in interface NamedService
      Returns:
      protocol configuration name
    • subProtocols

      List<String> subProtocols()
      WebSocket sub-protocols requested by the client.
      Returns:
      requested WebSocket sub-protocols