Interface WebSocketClientProvider
public interface WebSocketClientProvider
Provider of a WebSocket clients.
-
Method Summary
Modifier and TypeMethodDescriptionnewClient(ClientTlsOptions tlsOptions, ProxyOptions proxyOptions, Duration connectionTimeout, Duration idleTimeout, JsonValue vertxConfig) Creates a new WebSocket client.
-
Method Details
-
newClient
HttpWebSocketClient newClient(ClientTlsOptions tlsOptions, ProxyOptions proxyOptions, Duration connectionTimeout, Duration idleTimeout, JsonValue vertxConfig) throws IOException Creates a new WebSocket client.- Parameters:
tlsOptions- Security settings for the connection (may benull)proxyOptions- Proxy settings for the connection (must not benull)connectionTimeout- Time to wait for before failing the connection (must not benull).idleTimeout- Time to wait without activity before closing the connection (must not benull).vertxConfig- The vertx configuration to pass to the underlying Vert.x Websocket client if any (must not benull).- Returns:
- an
HttpWebSocketClientimplementation - Throws:
IOException- on any error when creating the WebSocket client
-