public interface WebSocketClientFactory
Modifier and Type | Method and Description |
---|---|
default WebSocketClient |
createWebSocketClient(URI uri)
Create a new
WebSocketClient . |
default WebSocketClient |
createWebSocketClient(URI uri,
HttpClientConfiguration configuration)
Create a new
WebSocketClient with the specified configuration. |
default WebSocketClient |
createWebSocketClient(URL url)
Deprecated.
Use
createWebSocketClient(URI) instead |
default WebSocketClient |
createWebSocketClient(URL url,
HttpClientConfiguration configuration)
Deprecated.
|
@NonNull @Deprecated default WebSocketClient createWebSocketClient(@Nullable URL url)
createWebSocketClient(URI)
insteadWebSocketClient
. Note that this method should only be used outside of the context of an application. Within Micronaut use
Inject
to inject a client insteadurl
- The base URL@NonNull @Deprecated default WebSocketClient createWebSocketClient(@Nullable URL url, @NonNull HttpClientConfiguration configuration)
createWebSocketClient(URI, HttpClientConfiguration)
insteadWebSocketClient
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 insteadurl
- The base URLconfiguration
- The client configuration@NonNull default WebSocketClient createWebSocketClient(@Nullable URI uri)
WebSocketClient
. Note that this method should only be used outside of the context of an application. Within Micronaut use
Inject
to inject a client insteaduri
- The base URI@NonNull default WebSocketClient createWebSocketClient(@Nullable URI uri, @NonNull HttpClientConfiguration configuration)
WebSocketClient
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 insteaduri
- The base URIconfiguration
- The client configuration