openvidu-test-browsers: CustomWebhook log event

pull/431/head
pabloFuente 2020-04-11 14:36:10 +02:00
parent 963a9d6b40
commit b011845292
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ public class CustomWebhook {
@RequestMapping("/webhook") @RequestMapping("/webhook")
public void webhook(@RequestBody String eventString) { public void webhook(@RequestBody String eventString) {
JsonObject event = JsonParser.parseString(eventString).getAsJsonObject(); JsonObject event = JsonParser.parseString(eventString).getAsJsonObject();
System.out.println("Webhook event: " + event.toString());
final String eventName = event.get("event").getAsString(); final String eventName = event.get("event").getAsString();
final BlockingQueue<JsonObject> queue = new LinkedBlockingDeque<>(); final BlockingQueue<JsonObject> queue = new LinkedBlockingDeque<>();
if (!CustomWebhook.events.computeIfAbsent(eventName, e -> { if (!CustomWebhook.events.computeIfAbsent(eventName, e -> {