From 29619bb7a4acf85e7692bb15e64b65c9765aa3eb Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Sun, 3 Mar 2024 15:29:58 +0700 Subject: [PATCH] [FIX] WebSocket dev log --- .../launcher/base/request/websockets/ClientJSONPoint.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LauncherAPI/src/main/java/pro/gravit/launcher/base/request/websockets/ClientJSONPoint.java b/LauncherAPI/src/main/java/pro/gravit/launcher/base/request/websockets/ClientJSONPoint.java index 0cc63d33..08df0ec1 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/base/request/websockets/ClientJSONPoint.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/base/request/websockets/ClientJSONPoint.java @@ -85,6 +85,7 @@ public CompletionStage onText(WebSocket webSocket, CharSequence data, boolean if(last) { String message = builder.toString(); builder = new StringBuilder(); + LogHelper.dev("Received %s", message); onMessage(message); } } @@ -104,6 +105,7 @@ public void onError(WebSocket webSocket, Throwable error) { } public void send(String text) { + LogHelper.dev("Send %s", text); webSocket.sendText(text, true); }