Class WSInterceptorServer
java.lang.Object
com.oracle.truffle.tools.chromeinspector.server.WSInterceptorServer
- All Implemented Interfaces:
InspectorWSConnection,org.graalvm.polyglot.io.MessageEndpoint
public final class WSInterceptorServer
extends Object
implements InspectorWSConnection, org.graalvm.polyglot.io.MessageEndpoint
Inspector server that delegates to
MessageTransport.-
Constructor Summary
ConstructorsConstructorDescriptionWSInterceptorServer(int port, Token token, InspectServerSession iss, ConnectionWatcher connectionWatcher) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidconsoleAPICall(Token tokenToCall, String type, Object text) voiddispose()intgetPort()voidnewSession(InspectServerSession newIss) voidopened(org.graalvm.polyglot.io.MessageEndpoint endpoint) voidvoidsendBinary(ByteBuffer data) voidvoidsendPing(ByteBuffer data) voidsendPong(ByteBuffer data) void
-
Constructor Details
-
WSInterceptorServer
public WSInterceptorServer(int port, Token token, InspectServerSession iss, ConnectionWatcher connectionWatcher)
-
-
Method Details
-
resetSessionEndpoint
public void resetSessionEndpoint() -
newSession
-
opened
public void opened(org.graalvm.polyglot.io.MessageEndpoint endpoint) -
getPort
public int getPort()- Specified by:
getPortin interfaceInspectorWSConnection
-
closing
- Specified by:
closingin interfaceInspectorWSConnection
-
close
- Specified by:
closein interfaceInspectorWSConnection- Throws:
IOException
-
dispose
public void dispose()- Specified by:
disposein interfaceInspectorWSConnection
-
consoleAPICall
- Specified by:
consoleAPICallin interfaceInspectorWSConnection
-
sendText
- Specified by:
sendTextin interfaceorg.graalvm.polyglot.io.MessageEndpoint- Throws:
IOException
-
sendBinary
- Specified by:
sendBinaryin interfaceorg.graalvm.polyglot.io.MessageEndpoint- Throws:
IOException
-
sendPing
- Specified by:
sendPingin interfaceorg.graalvm.polyglot.io.MessageEndpoint- Throws:
IOException
-
sendPong
- Specified by:
sendPongin interfaceorg.graalvm.polyglot.io.MessageEndpoint- Throws:
IOException
-
sendClose
- Specified by:
sendClosein interfaceorg.graalvm.polyglot.io.MessageEndpoint- Throws:
IOException
-