mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Сериализация в base64 запросов.
This commit is contained in:
parent
03ef5265dd
commit
3bfb3881d2
3 changed files with 5 additions and 5 deletions
|
@ -36,8 +36,6 @@
|
|||
import pro.gravit.launcher.profiles.ClientProfile;
|
||||
import pro.gravit.launcher.serialize.signed.SignedObjectHolder;
|
||||
import pro.gravit.utils.helper.*;
|
||||
import pro.gravit.launchserver.binary.*;
|
||||
import pro.gravit.launchserver.manangers.*;
|
||||
import pro.gravit.utils.Version;
|
||||
import pro.gravit.utils.command.CommandHandler;
|
||||
import pro.gravit.utils.command.JLineCommandHandler;
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
import io.netty.util.concurrent.GlobalEventExecutor;
|
||||
import pro.gravit.launchserver.LaunchServer;
|
||||
import pro.gravit.launchserver.socket.Client;
|
||||
import pro.gravit.utils.helper.CommonHelper;
|
||||
import pro.gravit.utils.helper.IOHelper;
|
||||
import pro.gravit.utils.helper.LogHelper;
|
||||
|
||||
|
@ -15,7 +16,7 @@
|
|||
|
||||
public class WebSocketFrameHandler extends SimpleChannelInboundHandler<WebSocketFrame> {
|
||||
public static LaunchServer server;
|
||||
public static GsonBuilder builder = new GsonBuilder();
|
||||
public static GsonBuilder builder = CommonHelper.newBuilder();
|
||||
public static WebSocketService service = new WebSocketService(new DefaultChannelGroup(GlobalEventExecutor.INSTANCE), LaunchServer.server, builder);
|
||||
public NettyConnectContext context;
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
import pro.gravit.launcher.events.request.ErrorRequestEvent;
|
||||
import pro.gravit.launcher.request.RequestException;
|
||||
import pro.gravit.launcher.request.ResultInterface;
|
||||
import pro.gravit.utils.helper.CommonHelper;
|
||||
import pro.gravit.utils.helper.JVMHelper;
|
||||
import pro.gravit.launcher.request.Request;
|
||||
import pro.gravit.utils.helper.LogHelper;
|
||||
|
@ -18,7 +19,7 @@ public class StandartClientWebSocketService extends ClientWebSocketService {
|
|||
public WaitEventHandler waitEventHandler = new WaitEventHandler();
|
||||
|
||||
public StandartClientWebSocketService(GsonBuilder gsonBuilder, String address, int i) throws SSLException {
|
||||
super(gsonBuilder, address, i);
|
||||
super(null, address, i);
|
||||
}
|
||||
|
||||
public class RequestFuture implements Future<ResultInterface> {
|
||||
|
@ -106,7 +107,7 @@ public RequestFuture asyncSendRequest(RequestInterface request) throws IOExcepti
|
|||
public static StandartClientWebSocketService initWebSockets(String address, boolean async) {
|
||||
StandartClientWebSocketService service;
|
||||
try {
|
||||
service = new StandartClientWebSocketService(new GsonBuilder(), address, 5000);
|
||||
service = new StandartClientWebSocketService(CommonHelper.newBuilder(), address, 5000);
|
||||
} catch (SSLException e) {
|
||||
LogHelper.error(e);
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue