public class WebSocket
extends java.lang.Object
| Constructor and Description |
|---|
WebSocket(WebSocketListener listener)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect(java.net.URI uri)
Deprecated.
|
void |
interrupt()
Deprecated.
|
void |
sendByteMessage(byte[] buffer)
Deprecated.
|
void |
sendPingMessage(byte[] buffer)
Deprecated.
|
void |
sendStringMessage(java.lang.String message)
Deprecated.
|
@Deprecated
public WebSocket(@Nonnull
WebSocketListener listener)
listener - where all calls will be thrownNewWebSocket@Deprecated
public void connect(@Nonnull
java.net.URI uri)
throws java.io.IOException,
WrongWebsocketResponse,
java.lang.InterruptedException
uri - uri of websocketjava.net.UnknownHostException - when could not connect to selected hostjava.io.IOException - thrown when I/O exception occurWrongWebsocketResponse - thrown when wrong web socket response receivedjava.lang.InterruptedException - thrown when interrupt method was invokedNewWebSocket#create(URI, WebSocketListener),
WebSocketConnection.connect()@Deprecated
public void sendByteMessage(@Nonnull
byte[] buffer)
throws java.io.IOException,
java.lang.InterruptedException,
NotConnectedException
buffer - buffer to sendjava.io.IOException - when exception occur while sendingjava.lang.InterruptedException - when user call disconnectNotConnectedException - when called before onConnect or after onDisconnectWebSocketConnection.sendByteMessage(byte[])@Deprecated
public void sendPingMessage(@Nonnull
byte[] buffer)
throws java.io.IOException,
java.lang.InterruptedException,
NotConnectedException
buffer - buffer to sendjava.io.IOException - when exception occur while sendingjava.lang.InterruptedException - when user call disconnectNotConnectedException - when called before onConnect or after onDisconnectWebSocketConnection.sendPingMessage(byte[])@Deprecated
public void sendStringMessage(@Nonnull
java.lang.String message)
throws java.io.IOException,
java.lang.InterruptedException,
NotConnectedException
message - message to sendjava.io.IOException - when exception occur while sendingjava.lang.InterruptedException - when user call disconnectNotConnectedException - when called before onConnect or after onDisconnectWebSocketConnection.sendStringMessage(String)@Deprecated public void interrupt()
WebSocketConnection.interrupt()