Work on being remotely controlled.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user