This commit is contained in:
2026-01-22 23:29:20 +08:00
parent 3618d18915
commit bafd02452b
7 changed files with 33 additions and 10 deletions

View File

@@ -58,7 +58,9 @@ export class WsProxyManager {
value.ws.close();
}
}
console.log('WsProxyManager register', id);
const [username, appId] = id.split('-');
const url = new URL(`/${username}/v1/${appId}`, 'https://kevisual.cn/');
console.log('WsProxyManager register', id, '访问地址', url.toString());
const value = new WsMessage({ ws: opts?.ws, user: opts?.user });
this.wssMap.set(id, value);
}