public interface MessageEndpoint
message transport
. The methods
throw IOException
when an I/O issue occurs or when the endpoint is closed.MessageTransport
Modifier and Type | Method and Description |
---|---|
void |
sendBinary(ByteBuffer data)
Send a binary message.
|
void |
sendClose()
Close the connection.
|
void |
sendPing(ByteBuffer data)
Send a ping request.
|
void |
sendPong(ByteBuffer data)
Send a pong reply as a response to ping.
|
void |
sendText(String text)
Send a text message.
|
void sendText(String text) throws IOException
IOException
void sendBinary(ByteBuffer data) throws IOException
IOException
void sendPing(ByteBuffer data) throws IOException
IOException
void sendPong(ByteBuffer data) throws IOException
IOException
void sendClose() throws IOException
IOException