diff --git a/js/app.js b/js/app.js index aab60f1..a94802b 100644 --- a/js/app.js +++ b/js/app.js @@ -1,6 +1,7 @@ +// Main entry point to the app function main() { const ws = new WebSocket(`ws://localhost:${CONFIG.remoteAppPort}`); - const paylaod = { + const payload = { type: "auth", payload: { identifier: "de.tealfire.obs", @@ -19,7 +20,7 @@ function main() { ws.onopen = (event) => { // Send payload to TS5 client - ws.send(JSON.stringify(paylaod)); + ws.send(JSON.stringify(payload)); }; ws.onmessage = (event) => {