🎨 Renames topics

This commit is contained in:
Rune Harlyk
2025-09-01 18:44:42 +02:00
parent 527764b0b5
commit df087decdb
12 changed files with 142 additions and 136 deletions
+3 -3
View File
@@ -6,7 +6,7 @@
import { slide } from 'svelte/transition'
import { onDestroy, onMount } from 'svelte'
import { socket } from '$lib/stores'
import { Topics, type IMU } from '$lib/types/models'
import { MessageTopic, type IMU } from '$lib/types/models'
import { useFeatureFlags } from '$lib/stores/featureFlags'
import { Rotate3d } from '$lib/components/icons'
@@ -201,7 +201,7 @@
}
onMount(() => {
socket.on(Topics.imu, (data: IMU) => {
socket.on(MessageTopic.imu, (data: IMU) => {
console.log(data)
imu.addData(data)
})
@@ -211,7 +211,7 @@
})
onDestroy(() => {
socket.off(Topics.imu)
socket.off(MessageTopic.imu)
clearInterval(intervalId)
})
</script>