[FIX] WebSocket dev log

This commit is contained in:
Gravita 2024-03-03 15:29:58 +07:00
parent 3179ee00eb
commit 29619bb7a4

View file

@ -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);
}