mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] WebSocket dev log
This commit is contained in:
parent
3179ee00eb
commit
29619bb7a4
1 changed files with 2 additions and 0 deletions
|
@ -85,6 +85,7 @@ public CompletionStage<?> onText(WebSocket webSocket, CharSequence data, boolean
|
||||||
if(last) {
|
if(last) {
|
||||||
String message = builder.toString();
|
String message = builder.toString();
|
||||||
builder = new StringBuilder();
|
builder = new StringBuilder();
|
||||||
|
LogHelper.dev("Received %s", message);
|
||||||
onMessage(message);
|
onMessage(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -104,6 +105,7 @@ public void onError(WebSocket webSocket, Throwable error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void send(String text) {
|
public void send(String text) {
|
||||||
|
LogHelper.dev("Send %s", text);
|
||||||
webSocket.sendText(text, true);
|
webSocket.sendText(text, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue