(fix) emote socket

This commit is contained in:
kirillsaint 2024-03-16 00:54:46 +06:00
parent 78cce2fa4e
commit 2592db2677

View File

@ -2,6 +2,7 @@ package net.silentclient.client.emotes.socket;
import io.socket.client.IO;
import io.socket.client.Socket;
import io.socket.engineio.client.transports.WebSocket;
import net.silentclient.client.Client;
import net.silentclient.client.emotes.EmoteManager;
import net.silentclient.client.utils.NotificationUtils;
@ -24,7 +25,10 @@ public class EmoteSocket {
public EmoteSocket() {
try {
this.socket = IO.socket(new URI("https://emotes.silentclient.net:443"));
IO.Options options = new IO.Options();
options.transports = new String[] { WebSocket.NAME };
this.socket = IO.socket(new URI("https://emotes.silentclient.net:443"), options);
} catch (Exception err) {
Client.logger.catching(err);
}