Testing Github/Discord integration

This commit is contained in:
Anuken
2018-01-20 16:24:36 -05:00
parent 7bcea08d83
commit 52f9cd5d22
6 changed files with 8 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ public class WebsocketClient implements ClientProvider {
@Override
public void connect(String ip, int port) throws IOException {
socket = new Websocket("wss://" + ip + ":" + Vars.webPort);
socket = new Websocket("ws://" + ip + ":" + Vars.webPort);
socket.addListener(new WebsocketListener() {
public void onMessage(byte[] bytes) {
try {
@@ -105,7 +105,7 @@ public class WebsocketClient implements ClientProvider {
@Override
public void pingHost(String address, int port, Consumer<Host> valid, Consumer<IOException> failed) {
failed.accept(new IOException());
Websocket socket = new Websocket("wss://" + address + ":" + Vars.webPort);
Websocket socket = new Websocket("ws://" + address + ":" + Vars.webPort);
final boolean[] accepted = {false};
socket.addListener(new WebsocketListener() {
@Override