mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:51:32 +01:00
commit
7ab58ccf53
@ -2,6 +2,7 @@ package net.silentclient.client.emotes.socket;
|
|||||||
|
|
||||||
import io.socket.client.IO;
|
import io.socket.client.IO;
|
||||||
import io.socket.client.Socket;
|
import io.socket.client.Socket;
|
||||||
|
import io.socket.engineio.client.transports.WebSocket;
|
||||||
import net.silentclient.client.Client;
|
import net.silentclient.client.Client;
|
||||||
import net.silentclient.client.emotes.EmoteManager;
|
import net.silentclient.client.emotes.EmoteManager;
|
||||||
import net.silentclient.client.utils.NotificationUtils;
|
import net.silentclient.client.utils.NotificationUtils;
|
||||||
@ -24,7 +25,10 @@ public class EmoteSocket {
|
|||||||
|
|
||||||
public EmoteSocket() {
|
public EmoteSocket() {
|
||||||
try {
|
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) {
|
} catch (Exception err) {
|
||||||
Client.logger.catching(err);
|
Client.logger.catching(err);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user