public interface WebSocketSender
| Modifier and Type | Method and Description |
|---|---|
void |
sendByteMessage(byte[] buffer)
Send binary message (thread safe).
|
void |
sendPingMessage(byte[] buffer)
Send ping request (thread safe).
|
void |
sendStringMessage(java.lang.String message)
Send text message (thread safe).
|
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 onDisconnectvoid 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 onDisconnectvoid 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 onDisconnect