begin websocket api

This commit is contained in:
lucas lelievre committed 2022-03-31 16:00:13 +02:00
1 parent 38b8e65d53
commit 281810dfbb
17 files changed
+188 -8

No files matched your search

+4 -1
View File
@@ -6,6 +6,7 @@ import java.net.ServerSocket;
import javax.swing.JOptionPane;
import dev.slimevr.websocketapi.WebsocketAPI;
import org.apache.commons.lang3.JavaVersion;
import org.apache.commons.lang3.SystemUtils;
@@ -41,6 +42,7 @@ public class Main {
new ServerSocket(6969).close();
new ServerSocket(35903).close();
new ServerSocket(21110).close();
new ServerSocket(21111).close();
} catch (IOException e) {
LogManager.log.severe("SlimeVR start-up error! Required ports are busy. Make sure there is no other instance of SlimeVR Server running.");
JOptionPane.showMessageDialog(null, "SlimeVR start-up error! Required ports are busy. Make sure there is no other instance of SlimeVR Server running.", "SlimeVR: Ports are busy", JOptionPane.ERROR_MESSAGE);
@@ -51,7 +53,8 @@ public class Main {
vrServer = new VRServer();
vrServer.start();
new Keybinding(vrServer);
new VRServerGUI(vrServer);
new WebsocketAPI(vrServer).start();
// new VRServerGUI(vrServer);
} catch(Throwable e) {
e.printStackTrace();
try {