Фикс двойного рукопожатия

This commit is contained in:
rosetta
2026-02-09 02:46:59 +02:00
parent 350e10676c
commit ef368d8020
2 changed files with 21 additions and 6 deletions

View File

@@ -1,5 +1,20 @@
# Сборка и установка
### Создать app/servers.ts
```ts
export const SERVERS = [
//'wss://cdn.rosetta-im.com', //main
//'ws://10.211.55.2:3000',
'ws://10.211.55.2:8881'
];
export function selectServer(): string {
const idx = Math.floor(Math.random() * SERVERS.length);
return SERVERS[idx];
}
```
```bash
npm install # Установить зависимости