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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classA post-processor of commands. -
Method Summary
Modifier and TypeMethodDescriptionvoidconsoleAPICall(String type, Object text) static InspectServerSessioncreate(InspectorExecutionContext context, boolean debugBreak, ConnectionWatcher connectionWatcher) voiddispose()voidvoidvoidopen(JSONMessageListener messageListener) Open the communication with aJSONMessageListener.voidopen(org.graalvm.polyglot.io.MessageEndpoint messageListener) Open the communication with aMessageEndpoint.voidsendBinary(ByteBuffer data) voidvoidsendCommand(Command cmd) voidsendPing(ByteBuffer data) voidsendPong(ByteBuffer data) void
-
Method Details
-
create
public static InspectServerSession create(InspectorExecutionContext context, boolean debugBreak, ConnectionWatcher connectionWatcher) -
onClose
-
sendClose
- Specified by:
sendClosein interfaceorg.graalvm.polyglot.io.MessageEndpoint- Throws:
IOException
-
getDebugger
-
notifyClosing
public void notifyClosing() -
dispose
public void dispose() -
open
public void open(org.graalvm.polyglot.io.MessageEndpoint messageListener) Open the communication with aMessageEndpoint. -
open
Open the communication with aJSONMessageListener. -
sendText
- Specified by:
sendTextin interfaceorg.graalvm.polyglot.io.MessageEndpoint- Throws:
IOException
-
sendCommand
-
consoleAPICall
-
sendBinary
- Specified by:
sendBinaryin interfaceorg.graalvm.polyglot.io.MessageEndpoint
-
sendPing
- Specified by:
sendPingin interfaceorg.graalvm.polyglot.io.MessageEndpoint- Throws:
IOException
-
sendPong
- Specified by:
sendPongin interfaceorg.graalvm.polyglot.io.MessageEndpoint- Throws:
IOException
-