public class WebSockets extends Object
| Constructor and Description |
|---|
WebSockets() |
| Modifier and Type | Method and Description |
|---|---|
static WebSocket |
create(String url,
Proxy proxy,
WebSocketHandler handler,
String... protocols)
Create websocket
|
static WebSocket |
create(String url,
String origin,
Proxy proxy,
WebSocketHandler handler,
String... protocols)
Create websocket
|
static WebSocket |
create(String url,
String origin,
WebSocketHandler handler,
String... protocols)
Create websocket
|
static WebSocket |
create(String url,
WebSocketHandler handler,
String... protocols)
Create websocket
|
static WebSocket |
createDraft06(String url,
Proxy proxy,
WebSocketHandler handler,
String... protocols)
Creates Draft06 websocket.
|
static WebSocket |
createDraft06(String url,
String origin,
Proxy proxy,
WebSocketHandler handler,
String... protocols)
Creates Draft06 websocket.
|
static WebSocket |
createDraft06(String url,
String origin,
WebSocketHandler handler,
String... protocols)
Create Draft06 websocket.
|
static WebSocket |
createDraft06(String url,
WebSocketHandler handler,
String... protocols)
Create Draft06 websocket.
|
static WebSocket |
createDraft76(String url,
Proxy proxy,
WebSocketHandler handler,
String... protocols)
Creates Draft76 websocket.
|
static WebSocket |
createDraft76(String url,
WebSocketHandler handler,
String... protocols)
Create Draft76 websocket.
|
public static WebSocket create(String url, String origin, WebSocketHandler handler, String... protocols) throws WebSocketException
url - the urlorigin - the originhandler - the handlerprotocols - the protocolsWebSocketException - the web socket exceptionpublic static WebSocket create(String url, WebSocketHandler handler, String... protocols) throws WebSocketException
url - the urlhandler - the handlerprotocols - the protocolsWebSocketException - the web socket exceptionpublic static WebSocket create(String url, String origin, Proxy proxy, WebSocketHandler handler, String... protocols) throws WebSocketException
url - the urlorigin - the originproxy - the proxyhandler - the handlerprotocols - the protocolsWebSocketException - the web socket exceptionpublic static WebSocket create(String url, Proxy proxy, WebSocketHandler handler, String... protocols) throws WebSocketException
url - the urlproxy - the proxyhandler - the handlerprotocols - the protocolsWebSocketException - the web socket exceptionpublic static WebSocket createDraft76(String url, WebSocketHandler handler, String... protocols) throws WebSocketException
url - the urlhandler - the handlerprotocols - the protocolsWebSocketException - the web socket exceptionpublic static WebSocket createDraft76(String url, Proxy proxy, WebSocketHandler handler, String... protocols) throws WebSocketException
url - the urlproxy - the proxyhandler - the handlerprotocols - the protocolsWebSocketException - the web socket exceptionpublic static WebSocket createDraft06(String url, String origin, WebSocketHandler handler, String... protocols) throws WebSocketException
url - the urlorigin - the originhandler - the handlerprotocols - the protocolsWebSocketException - the web socket exceptionpublic static WebSocket createDraft06(String url, WebSocketHandler handler, String... protocols) throws WebSocketException
url - the urlhandler - the handlerprotocols - the protocolsWebSocketException - the web socket exceptionpublic static WebSocket createDraft06(String url, String origin, Proxy proxy, WebSocketHandler handler, String... protocols) throws WebSocketException
url - the urlorigin - the originproxy - the proxyhandler - the handlerprotocols - the protocolsWebSocketException - the web socket exceptionpublic static WebSocket createDraft06(String url, Proxy proxy, WebSocketHandler handler, String... protocols) throws WebSocketException
url - the urlproxy - the proxyhandler - the handlerprotocols - the protocolsWebSocketException - the web socket exceptionCopyright © 2021. All rights reserved.