// logMessage is: {"message":{"method":"Timeline.eventRecorded","params":{...
try {
JSONObject json = new JSONObject(message);
JSONObject event = json.getJSONObject("message");
String webview = json.getString("webview");
events.add(new RDPNotification(event, webview));
} catch (JSONException e) {
LOG.log(Level.WARNING, message, e);
}
}
return events;