/**
* @param type response type ("response" or "event")
* @param response from the V8 VM debugger
*/
public void handleResponseWithHandler(IncomingMessage response) {
EventNotification eventResponse = response.asEventNotification();
if (eventResponse == null) {
// Currently only events are supported.
return;
}
String commandString = eventResponse.event();
DebuggerCommand command = DebuggerCommand.forString(commandString);
if (command == null) {
LOGGER.log(Level.WARNING,
"Unknown command in V8 debugger reply JSON: {0}", commandString);
return;