Package org.graalvm.polyglot.io
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 TypeMethodDescriptionvoid
sendBinary
(ByteBuffer data) Send a binary message.void
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
Send a text message.
-
Method Details
-
sendText
Send a text message.- Throws:
IOException
- Since:
- 19.0
-
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
Close the connection.- Throws:
IOException
- Since:
- 19.0
-