mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 06:41:31 +01:00
(fix) emote socket
This commit is contained in:
parent
78cce2fa4e
commit
2592db2677
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user