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
IOExceptionvoid sendBinary(ByteBuffer data) throws IOException
IOExceptionvoid sendPing(ByteBuffer data) throws IOException
IOExceptionvoid sendPong(ByteBuffer data) throws IOException
IOExceptionvoid sendClose()
throws IOException
IOException