From 5b22989e57674b5aa50f518e7c5b688c064a4400 Mon Sep 17 00:00:00 2001 From: Gravit Date: Sun, 10 Feb 2019 15:15:25 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20WebSockets=20=D0=B7=D0=B0=D1=80=D0=B5?= =?UTF-8?q?=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BB=20RequestEvent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../request/websockets/ClientWebSocketService.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/LauncherAPI/src/main/java/ru/gravit/launcher/request/websockets/ClientWebSocketService.java b/LauncherAPI/src/main/java/ru/gravit/launcher/request/websockets/ClientWebSocketService.java index 176a9c3b..35c66cb3 100644 --- a/LauncherAPI/src/main/java/ru/gravit/launcher/request/websockets/ClientWebSocketService.java +++ b/LauncherAPI/src/main/java/ru/gravit/launcher/request/websockets/ClientWebSocketService.java @@ -2,10 +2,11 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; -import ru.gravit.launcher.events.request.EchoRequestEvent; +import ru.gravit.launcher.events.request.*; import ru.gravit.launcher.hasher.HashedEntry; import ru.gravit.launcher.hasher.HashedEntryAdapter; import ru.gravit.launcher.request.ResultInterface; +import ru.gravit.launcher.request.auth.JoinServerRequest; import ru.gravit.utils.helper.LogHelper; import java.io.IOException; @@ -78,6 +79,15 @@ public void registerResult(String key, Class clazz) { public void registerResults() { registerResult("echo", EchoRequestEvent.class); + registerResult("auth", AuthRequestEvent.class); + registerResult("checkServer", CheckServerEvent.class); + registerResult("joinServer", JoinServerRequestEvent.class); + registerResult("launcher", LauncherRequestEvent.class); + registerResult("profileByUsername", ProfileByUsernameRequestEvent.class); + registerResult("profileByUUID", ProfileByUUIDRequestEvent.class); + registerResult("batchProfileByUsername", BatchProfileByUsernameRequestEvent.class); + registerResult("profiles", ProfilesRequestEvent.class); + registerResult("updateList", UpdateListRequestEvent.class); } public void registerHandler(EventHandler eventHandler)