All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.king.platform.net.http.BuiltWebSocketRequest Maven / Gradle / Ivy

There is a newer version: 3.0.26
Show newest version
package com.king.platform.net.http;

import java.util.concurrent.CompletableFuture;

public interface BuiltWebSocketRequest {
	/**
	 * Builds and executes (connects) the web-socket connection.
	 * @param webSocketListener the listener
	 * @return the future with the connected webSocketConnection
	 */
	CompletableFuture execute(WebSocketListener webSocketListener);


	/**
	 * Builds a web-socket connection that is not yet connected.
	 * It can later be connected by calling {@link WebSocketClient#connect()}
	 * @return the not yet connected web-socket
	 */
	WebSocketClient build();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy