|
|
@@ -2,7 +2,6 @@ class WSManager {
|
|
|
private ws: WebSocket | null = null
|
|
|
private handlers: Map<string, Set<(msg: Record<string, unknown>) => void>> = new Map()
|
|
|
private reconnectTimer: ReturnType<typeof setTimeout> | null = null
|
|
|
- private url: string | null = null
|
|
|
|
|
|
connect(baseUrl?: string) {
|
|
|
if (this.ws) return
|
|
|
@@ -15,8 +14,6 @@ class WSManager {
|
|
|
wsUrl += wsUrl.includes('?') ? '&' : '?'
|
|
|
wsUrl += `token=${encodeURIComponent(token)}`
|
|
|
}
|
|
|
- this.url = wsUrl
|
|
|
-
|
|
|
try {
|
|
|
this.ws = new WebSocket(wsUrl)
|
|
|
} catch {
|