u
This commit is contained in:
1 parent
a6c5e70f85
commit
2598098876
8 files changed
+646
-45
No files matched your search
@@ -1,4 +1,16 @@
|
||||
<script setup>
|
||||
import { onBeforeUnmount, onMounted } from 'vue'
|
||||
import { useWebSocket } from './stores/websocketStore'
|
||||
|
||||
const websocket = useWebSocket()
|
||||
|
||||
onMounted(() => {
|
||||
websocket.connect('ws://192.168.1.136:8090/ws')
|
||||
})
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
websocket.disconnect()
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in new issue
Block a user