implement KraSocketClient

master
Alex 2021-12-27 12:58:26 +01:00
parent 8ea50c6b3b
commit 98e81d2506
2 changed files with 4 additions and 1 deletions

View File

@ -52,12 +52,15 @@ public class KrakatoaAPI extends JavaPlugin {
this.configHandler.getWebSocketPort(), this.configHandler.getWebSocketAccessKey(),
CloudNetDriver.getInstance().getComponentName());
System.out.println("load kraSocketClient");
this.kraSocketClientEventInitiater = new KraSocketClientEventInitiater();
this.kraSocketClientEventInterface = new SocketClientMessageListener();
try {
this.kraSocketClient = new KraSocketClient(kraSocketClientConfig,
this.kraSocketClientEventInterface, this.kraProtocol);
} catch (URISyntaxException e) {
e.printStackTrace();
}