public final class InspectServerSession extends Object implements org.graalvm.polyglot.io.MessageEndpoint
| Modifier and Type | Class and Description |
|---|---|
class |
InspectServerSession.CommandPostProcessor
A post-processor of commands.
|
| Modifier and Type | Method and Description |
|---|---|
void |
consoleAPICall(String type,
Object text) |
static InspectServerSession |
create(InspectorExecutionContext context,
boolean debugBreak,
ConnectionWatcher connectionWatcher) |
DebuggerDomain |
getDebugger() |
void |
onClose(Runnable onCloseTask) |
void |
sendBinary(ByteBuffer data) |
void |
sendClose() |
void |
sendCommand(Command cmd) |
void |
sendPing(ByteBuffer data) |
void |
sendPong(ByteBuffer data) |
void |
sendText(String message) |
void |
setJSONMessageListener(JSONMessageListener messageListener) |
void |
setMessageListener(org.graalvm.polyglot.io.MessageEndpoint messageListener) |
public static InspectServerSession create(InspectorExecutionContext context, boolean debugBreak, ConnectionWatcher connectionWatcher)
public void onClose(Runnable onCloseTask)
public void sendClose()
sendClose in interface org.graalvm.polyglot.io.MessageEndpointpublic DebuggerDomain getDebugger()
public void setMessageListener(org.graalvm.polyglot.io.MessageEndpoint messageListener)
public void setJSONMessageListener(JSONMessageListener messageListener)
public void sendText(String message)
sendText in interface org.graalvm.polyglot.io.MessageEndpointpublic void sendCommand(Command cmd)
public void sendBinary(ByteBuffer data)
sendBinary in interface org.graalvm.polyglot.io.MessageEndpointpublic void sendPing(ByteBuffer data)
sendPing in interface org.graalvm.polyglot.io.MessageEndpointpublic void sendPong(ByteBuffer data)
sendPong in interface org.graalvm.polyglot.io.MessageEndpoint