Interface MessageEndpoint
public interface MessageEndpoint
An endpoint representing one side of
message transport. The methods
throw IOException when an I/O issue occurs or when the endpoint is closed.- Since:
- 19.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidsendBinary(ByteBuffer data) Send a binary message.voidClose the connection.voidsendPing(ByteBuffer data) Send a ping request.voidsendPong(ByteBuffer data) Send a pong reply as a response to ping.voidSend a text message.
-
Method Details
-
sendText
-
sendBinary
Send a binary message.- Throws:
IOException- Since:
- 19.0
-
sendPing
Send a ping request.- Throws:
IOException- Since:
- 19.0
-
sendPong
Send a pong reply as a response to ping.- Throws:
IOException- Since:
- 19.0
-
sendClose
-