| Constructor and Description |
|---|
WebSocketConnection(URI url) |
WebSocketConnection(URI url,
String protocol) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect() |
WebSocketEventHandler |
getEventHandler() |
void |
handleReceiverError() |
void |
send(String data) |
void |
setEventHandler(WebSocketEventHandler eventHandler) |
public WebSocketConnection(URI url) throws WebSocketException
WebSocketExceptionpublic WebSocketConnection(URI url, String protocol) throws WebSocketException
WebSocketExceptionpublic void setEventHandler(WebSocketEventHandler eventHandler)
setEventHandler in interface WebSocketpublic WebSocketEventHandler getEventHandler()
getEventHandler in interface WebSocketpublic void connect()
throws WebSocketException
connect in interface WebSocketWebSocketExceptionpublic void send(String data) throws WebSocketException
send in interface WebSocketWebSocketExceptionpublic void handleReceiverError()
public void close()
throws WebSocketException
close in interface WebSocketWebSocketExceptionCopyright © 2017. All rights reserved.