Class InspectServerSession

java.lang.Object
com.oracle.truffle.tools.chromeinspector.server.InspectServerSession
All Implemented Interfaces:
org.graalvm.polyglot.io.MessageEndpoint

public final class InspectServerSession extends Object implements org.graalvm.polyglot.io.MessageEndpoint
  • Method Details

    • create

      public static InspectServerSession create(InspectorExecutionContext context, boolean debugBreak, ConnectionWatcher connectionWatcher)
    • onClose

      public void onClose(Runnable onCloseTask)
    • sendClose

      public void sendClose() throws IOException
      Specified by:
      sendClose in interface org.graalvm.polyglot.io.MessageEndpoint
      Throws:
      IOException
    • getDebugger

      public DebuggerDomain getDebugger()
    • notifyClosing

      public void notifyClosing()
    • dispose

      public void dispose()
    • open

      public void open(org.graalvm.polyglot.io.MessageEndpoint messageListener)
      Open the communication with a MessageEndpoint.
    • open

      public void open(JSONMessageListener messageListener)
      Open the communication with a JSONMessageListener.
    • sendText

      public void sendText(String message) throws IOException
      Specified by:
      sendText in interface org.graalvm.polyglot.io.MessageEndpoint
      Throws:
      IOException
    • sendCommand

      public void sendCommand(Command cmd)
    • consoleAPICall

      public void consoleAPICall(String type, Object text)
    • sendBinary

      public void sendBinary(ByteBuffer data)
      Specified by:
      sendBinary in interface org.graalvm.polyglot.io.MessageEndpoint
    • sendPing

      public void sendPing(ByteBuffer data) throws IOException
      Specified by:
      sendPing in interface org.graalvm.polyglot.io.MessageEndpoint
      Throws:
      IOException
    • sendPong

      public void sendPong(ByteBuffer data) throws IOException
      Specified by:
      sendPong in interface org.graalvm.polyglot.io.MessageEndpoint
      Throws:
      IOException