Work on being remotely controlled.

This commit is contained in:
Scott Idem
2024-10-07 15:58:56 -04:00
parent ccb36ca953
commit 03e6117024
4 changed files with 46 additions and 13 deletions

View File

@@ -1,6 +1,7 @@
<script lang="ts">
import { createEventDispatcher, onMount } from 'svelte';
export let log_lvl: number = 0;
export let ws_connect: boolean = false;
export let ws_connect_status: null|string = null;
export let ws_server = 'dev-api.oneskyit.com';
@@ -79,7 +80,9 @@ function ws_connect_group_id({group_id, client_id}) {
console.log(ws_recv_data);
if (client_id == ws_recv_data.client_id) {
console.log('WS: Message received was sent by self and is an echo that can be ignored.');
if (log_lvl) {
console.log('WS: Message received was sent by self and is an echo that can be ignored.');
}
return false;
}