public class WebSocketAPI
This API object provides simple WebSocket client for Bukkit plugins.
public static WebSocketAPI INSTANCE
This API object provides simple WebSocket client for Bukkit plugins.
private WebSocketAPI()
This API object provides simple WebSocket client for Bukkit plugins.
@JvmStatic @Nullable public static WebSocketClient createWebSocket(@NotNull java.lang.String url)
Creates a websocket client without tls support. Returns null when websocket has no response.
url - websocket url to connect@JvmStatic @Nullable public static WebSocketClient createWebSocket(@NotNull java.lang.String url, boolean tls, boolean suppress)
Creates a websocket client with tls option. Returns null when websocket has no response.
url - websocket url to connecttls - whether to use tls support@JvmStatic @NotNull public static WebSocketClient createUnsafeWebSocket(@NotNull java.lang.String url)
Creates a websocket client without tls support. This method throws WebSocketNoResponseException when websocket has no response.
url - websocket url to connect@JvmStatic @NotNull public static WebSocketClient createUnsafeWebSocket(@NotNull java.lang.String url, boolean tls, boolean suppress)
Creates a websocket client with tls option. This method throws WebSocketNoResponseException when websocket has no response.
url - websocket url to connecttls - whether to use tls support