Top Description Methods
org.graalvm.polyglot.io

public Interface MessageEndpoint

Imports
java.io.IOException, java.nio.ByteBuffer

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
MessageTransport

Method Summary

Modifier and TypeMethod and Description
public void
sendBinary(ByteBuffer data)

Send a binary message.

public void
sendClose()

Close the connection.

public void
sendPing(ByteBuffer data)

Send a ping request.

public void
sendPong(ByteBuffer data)

Send a pong reply as a response to ping.

public void
sendText(String text)

Send a text message.

Method Detail

sendBinaryback to summary
public void sendBinary(ByteBuffer data) throws IOException

Send a binary message.

Since
19.0
sendCloseback to summary
public void sendClose() throws IOException

Close the connection.

Since
19.0
sendPingback to summary
public void sendPing(ByteBuffer data) throws IOException

Send a ping request.

Since
19.0
sendPongback to summary
public void sendPong(ByteBuffer data) throws IOException

Send a pong reply as a response to ping.

Since
19.0
sendTextback to summary
public void sendText(String text) throws IOException

Send a text message.

Since
19.0