public interface RxWebSocketClient extends WebSocketClient
WebSocketClient
interface for RxJava.WebSocketClient
SCHEME_WS, SCHEME_WSS
Modifier and Type | Method and Description |
---|---|
<T extends java.lang.AutoCloseable> |
connect(java.lang.Class<T> clientEndpointType,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Connect the given client endpoint type.
|
<T extends java.lang.AutoCloseable> |
connect(java.lang.Class<T> clientEndpointType,
MutableHttpRequest<?> request)
Connect the given client endpoint type to the URI over WebSocket.
|
default <T extends java.lang.AutoCloseable> |
connect(java.lang.Class<T> clientEndpointType,
java.lang.String uri)
Connect the given client endpoint type to the URI over WebSocket.
|
default <T extends java.lang.AutoCloseable> |
connect(java.lang.Class<T> clientEndpointType,
java.net.URI uri)
Connect the given client endpoint type to the URI over WebSocket.
|
close
<T extends java.lang.AutoCloseable> io.reactivex.Flowable<T> connect(java.lang.Class<T> clientEndpointType, MutableHttpRequest<?> request)
WebSocketClient
connect
in interface WebSocketClient
T
- The generic typeclientEndpointType
- The endpoint type. Should be a class annotated with ClientWebSocket
request
- The original request to establish the connectionPublisher
that emits the ClientWebSocket
instancedefault <T extends java.lang.AutoCloseable> io.reactivex.Flowable<T> connect(java.lang.Class<T> clientEndpointType, java.net.URI uri)
connect
in interface WebSocketClient
T
- The generic typeclientEndpointType
- The endpoint type. Should be a class annotated with ClientWebSocket
uri
- The URI to connect overPublisher
that emits the ClientWebSocket
instance<T extends java.lang.AutoCloseable> io.reactivex.Flowable<T> connect(java.lang.Class<T> clientEndpointType, java.util.Map<java.lang.String,java.lang.Object> parameters)
WebSocketClient.connect(Class, URI)
this method will the value declared within the ClientWebSocket
as the URI
and expand the URI with the given parameters.connect
in interface WebSocketClient
T
- The generic typeclientEndpointType
- The endpoint type. Should be a class annotated with ClientWebSocket
parameters
- The URI parameters for the endpointPublisher
that emits the ClientWebSocket
instancedefault <T extends java.lang.AutoCloseable> io.reactivex.Flowable<T> connect(java.lang.Class<T> clientEndpointType, java.lang.String uri)
WebSocketClient
connect
in interface WebSocketClient
T
- The generic typeclientEndpointType
- The endpoint type. Should be a class annotated with ClientWebSocket
uri
- The URI to connect overPublisher
that emits the ClientWebSocket
instance