Interface ReactorWebSocketClient

All Superinterfaces:
AutoCloseable, io.micronaut.websocket.WebSocketClient

public interface ReactorWebSocketClient extends io.micronaut.websocket.WebSocketClient
Specialization of the WebSocketClient interface for Project Reactor.
Since:
2.1.0
Author:
James Kleeh
See Also:
  • WebSocketClient
  • Method Details

    • connect

      <T extends AutoCloseable> reactor.core.publisher.Flux<T> connect(Class<T> clientEndpointType, io.micronaut.http.MutableHttpRequest<?> request)
      Specified by:
      connect in interface io.micronaut.websocket.WebSocketClient
    • connect

      <T extends AutoCloseable> reactor.core.publisher.Flux<T> connect(Class<T> clientEndpointType, URI uri)
      Specified by:
      connect in interface io.micronaut.websocket.WebSocketClient
    • connect

      <T extends AutoCloseable> reactor.core.publisher.Flux<T> connect(Class<T> clientEndpointType, Map<String,Object> parameters)
      Specified by:
      connect in interface io.micronaut.websocket.WebSocketClient
    • connect

      <T extends AutoCloseable> reactor.core.publisher.Flux<T> connect(Class<T> clientEndpointType, String uri)
      Specified by:
      connect in interface io.micronaut.websocket.WebSocketClient
    • create

      @NonNull static @NonNull ReactorWebSocketClient create(@Nullable @Nullable URL url)
      Create a new ReactorWebSocketClient. Note that this method should only be used outside of the context of a Micronaut application. The returned ReactorWebSocketClient is not subject to dependency injection. The creator is responsible for closing the client to avoid leaking connections. Within a Micronaut application use Inject to inject a client instead.
      Parameters:
      url - The base URL
      Returns:
      The client
      Since:
      2.1.0
    • create

      @NonNull static @NonNull ReactorWebSocketClient create(@Nullable @Nullable URL url, @NonNull @NonNull io.micronaut.http.client.HttpClientConfiguration configuration)
      Create a new ReactorWebSocketClient with the specified configuration. Note that this method should only be used outside of the context of an application. Within Micronaut use Inject to inject a client instead
      Parameters:
      url - The base URL
      configuration - the client configuration
      Returns:
      The client
      Since:
      2.1.0