From 21f70f1d3f0ad7003ff6a08ac503a15347dca4ba Mon Sep 17 00:00:00 2001 From: Meninjar Date: Tue, 23 Sep 2025 21:18:25 +0700 Subject: [PATCH] update clietn --- .../components/tabs/ConnectionTab.vue | 46 +- .../components/tabs/DatabaseTab.vue | 164 +-- .../components/tabs/MessagingTab.vue | 224 +++- .../components/tabs/MonitoringTab.vue | 212 ++-- examples/clientsocket/composables/note | 1073 +++++++++++++++++ .../composables/useWebSocket.fixed | 1073 +++++++++++++++++ .../clientsocket/composables/useWebSocket.ts | 1039 +++++++++++++--- examples/clientsocket/types/websocket.ts | 288 ++--- 8 files changed, 3592 insertions(+), 527 deletions(-) create mode 100644 examples/clientsocket/composables/note create mode 100644 examples/clientsocket/composables/useWebSocket.fixed diff --git a/examples/clientsocket/components/tabs/ConnectionTab.vue b/examples/clientsocket/components/tabs/ConnectionTab.vue index 570de98f..988e02f8 100644 --- a/examples/clientsocket/components/tabs/ConnectionTab.vue +++ b/examples/clientsocket/components/tabs/ConnectionTab.vue @@ -45,30 +45,21 @@
@@ -82,7 +73,7 @@ @click="connect" > - {{ isConnected ? 'Reconnect' : 'Connect' }} + {{ isConnected ? "Reconnect" : "Connect" }}
@@ -164,11 +152,11 @@
Static ID: - {{ connectionState.staticId || 'N/A' }} + {{ connectionState.staticId || "N/A" }}
IP Address: - {{ connectionState.ipAddress || 'N/A' }} + {{ connectionState.ipAddress || "N/A" }}
User ID: @@ -180,7 +168,9 @@
Connected At: - {{ new Date(connectionState.connectionStartTime || 0).toLocaleString() }} + {{ + new Date(connectionState.connectionStartTime || 0).toLocaleString() + }}
Latency: @@ -196,8 +186,8 @@