fix: reload and parse msg

This commit is contained in:
手瓜一十雪
2025-02-04 19:34:51 +08:00
parent a94e03e2fd
commit cb8727d487
3 changed files with 12 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ import { useWebSocketDebug } from '@/hooks/use-websocket-debug'
export default function WSDebug() {
const url = new URL(window.location.origin)
url.port = '3000'
url.port = '3001'
url.protocol = 'ws:'
const defaultWsUrl = url.href
const [socketConfig, setSocketConfig] = useLocalStorage(key.wsDebugConfig, {