update komponen, stores, desain

This commit is contained in:
bagus-arie05
2025-10-30 08:44:59 +07:00
parent fa2d439ea4
commit bb66cf4a2a
19 changed files with 3745 additions and 953 deletions
+1 -5
View File
@@ -1,9 +1,6 @@
import { ref, onUnmounted } from 'vue';
/**
* Komposable untuk mengelola koneksi WebSocket.
* @param {string} url - URL WebSocket lengkap.
*/
export function useWebSocket(url) {
const ws = ref(null);
const data = ref(null);
@@ -29,7 +26,6 @@ export function useWebSocket(url) {
};
ws.value.onmessage = (event) => {
// LOGIC PENTING: Menerima data dan memicu watcher di index.vue
console.log('🔔 [WS] Message received. Parsing data...');
try {
const parsedData = JSON.parse(event.data);