de.roderick.weberknecht
Class WebSocketConnection
java.lang.Object
de.roderick.weberknecht.WebSocketConnection
- All Implemented Interfaces:
- WebSocket
public class WebSocketConnection
- extends Object
- implements WebSocket
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebSocketConnection
public WebSocketConnection(URI url)
throws WebSocketException
- Throws:
WebSocketException
WebSocketConnection
public WebSocketConnection(URI url,
String protocol)
throws WebSocketException
- Throws:
WebSocketException
setEventHandler
public void setEventHandler(WebSocketEventHandler eventHandler)
- Specified by:
setEventHandler in interface WebSocket
getEventHandler
public WebSocketEventHandler getEventHandler()
- Specified by:
getEventHandler in interface WebSocket
connect
public void connect()
throws WebSocketException
- Specified by:
connect in interface WebSocket
- Throws:
WebSocketException
send
public void send(String data)
throws WebSocketException
- Specified by:
send in interface WebSocket
- Throws:
WebSocketException
handleReceiverError
public void handleReceiverError()
close
public void close()
throws WebSocketException
- Specified by:
close in interface WebSocket
- Throws:
WebSocketException
Copyright © 2016. All rights reserved.