Interface Rx3WebSocketClient
- All Superinterfaces:
AutoCloseable
,io.micronaut.websocket.WebSocketClient
public interface Rx3WebSocketClient
extends io.micronaut.websocket.WebSocketClient
Specialization of the
WebSocketClient
interface for RxJava 3.- Since:
- 2.1.0
- Author:
- James Kleeh
- See Also:
-
WebSocketClient
-
Field Summary
Fields inherited from interface io.micronaut.websocket.WebSocketClient
SCHEME_WS, SCHEME_WSS
-
Method Summary
Modifier and TypeMethodDescription<T extends AutoCloseable>
io.reactivex.rxjava3.core.Flowable<T>default <T extends AutoCloseable>
io.reactivex.rxjava3.core.Flowable<T>default <T extends AutoCloseable>
io.reactivex.rxjava3.core.Flowable<T><T extends AutoCloseable>
io.reactivex.rxjava3.core.Flowable<T>static Rx3WebSocketClient
Create a newRx3WebSocketClient
.static Rx3WebSocketClient
Create a newRx3WebSocketClient
with the specified configuration.Methods inherited from interface io.micronaut.websocket.WebSocketClient
close
-
Method Details
-
connect
<T extends AutoCloseable> io.reactivex.rxjava3.core.Flowable<T> connect(Class<T> clientEndpointType, io.micronaut.http.MutableHttpRequest<?> request) - Specified by:
connect
in interfaceio.micronaut.websocket.WebSocketClient
-
connect
default <T extends AutoCloseable> io.reactivex.rxjava3.core.Flowable<T> connect(Class<T> clientEndpointType, URI uri) - Specified by:
connect
in interfaceio.micronaut.websocket.WebSocketClient
-
connect
<T extends AutoCloseable> io.reactivex.rxjava3.core.Flowable<T> connect(Class<T> clientEndpointType, Map<String, Object> parameters) - Specified by:
connect
in interfaceio.micronaut.websocket.WebSocketClient
-
connect
default <T extends AutoCloseable> io.reactivex.rxjava3.core.Flowable<T> connect(Class<T> clientEndpointType, String uri) - Specified by:
connect
in interfaceio.micronaut.websocket.WebSocketClient
-
create
Create a newRx3WebSocketClient
. Note that this method should only be used outside of the context of a Micronaut application. The returnedRx3WebSocketClient
is not subject to dependency injection. The creator is responsible for closing the client to avoid leaking connections. Within a Micronaut application useInject
to inject a client instead.- Parameters:
url
- The base URL- Returns:
- The client
- Since:
- 2.1.0
-
create
static Rx3WebSocketClient create(@Nullable @Nullable URL url, @NonNull @NonNull io.micronaut.http.client.HttpClientConfiguration configuration) Create a newRx3WebSocketClient
with the specified configuration. Note that this method should only be used outside of the context of an application. Within Micronaut useInject
to inject a client instead- Parameters:
url
- The base URLconfiguration
- the client configuration- Returns:
- The client
- Since:
- 2.1.0
-