mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +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) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue