remoteAppPort now changable in config

This commit is contained in:
Janis
2022-10-27 20:43:30 +02:00
parent 7596ec588f
commit 69860f786e
2 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
const CONFIG = {
apiKey: "9811add4-5ee3-436d-ae9d-d98ff53a1f12",
remoteAppPort: 5899,
style: {
fontBackground: "rgba(19, 20, 33, 0.5)",
fontColor: "#ffffff",

View File

@@ -1,5 +1,5 @@
function main() {
const ws = new WebSocket("ws://localhost:5899");
const ws = new WebSocket(`ws://localhost:${CONFIG.remoteAppPort}`);
const paylaod = {
type: "auth",
payload: {