summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-01-21 20:34:02 +0500
committerilotterytea <iltsu@alright.party>2025-01-21 20:34:02 +0500
commite4997681a2d08adc9b9055b0b2a1dc52d54edd47 (patch)
treef27c80fde0ef754027c08e98a3093f0711624262 /core
parent46217bf572a73c5cf7119f58f894352ee50cb403 (diff)
upd: gdx-websocket dependencies (special fork which supports gwt)
Diffstat (limited to 'core')
-rw-r--r--core/build.gradle2
-rw-r--r--core/src/main/java/kz/ilotterytea/frogartha/sessions/SessionClient.java5
2 files changed, 4 insertions, 3 deletions
diff --git a/core/build.gradle b/core/build.gradle
index 18766c3..a86da85 100644
--- a/core/build.gradle
+++ b/core/build.gradle
@@ -3,7 +3,7 @@ eclipse.project.name = appName + '-core'
dependencies {
api "com.github.mgsx-dev.gdx-gltf:gltf:$gdxGltfVersion"
- api "com.github.MrStahlfelge.gdx-websockets:core:$gdxWsVersion"
+ api "com.crashinvaders.lml:gdx-websocket:$gdxWsVersion"
api project(':shared')
if (enableGraalNative == 'true') {
diff --git a/core/src/main/java/kz/ilotterytea/frogartha/sessions/SessionClient.java b/core/src/main/java/kz/ilotterytea/frogartha/sessions/SessionClient.java
index 0e097a7..c775e57 100644
--- a/core/src/main/java/kz/ilotterytea/frogartha/sessions/SessionClient.java
+++ b/core/src/main/java/kz/ilotterytea/frogartha/sessions/SessionClient.java
@@ -3,6 +3,7 @@ package kz.ilotterytea.frogartha.sessions;
import com.github.czyzby.websocket.WebSocket;
import com.github.czyzby.websocket.WebSocketListener;
import com.github.czyzby.websocket.WebSockets;
+import com.github.czyzby.websocket.data.WebSocketCloseCode;
import com.github.czyzby.websocket.serialization.impl.ManualSerializer;
import kz.ilotterytea.frogartha.FrogarthaConstants;
import kz.ilotterytea.frogartha.FrogarthaGame;
@@ -38,8 +39,8 @@ public class SessionClient implements WebSocketListener {
}
@Override
- public boolean onClose(WebSocket webSocket, int closeCode, String reason) {
- log.log("Connection closed! Reason: {} {}", closeCode, reason);
+ public boolean onClose(WebSocket webSocket, WebSocketCloseCode code, String reason) {
+ log.log("Connection closed! Reason: {} {}", code.getCode(), reason);
game.getIdentityClient().setAuthorized(false);
return true;
}