From cdf98d3d8dcbfc1b1457cc99cbea9e970cdaf202 Mon Sep 17 00:00:00 2001 From: Royce59 Date: Tue, 17 Feb 2026 18:04:15 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20app/servers.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/servers.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 app/servers.ts diff --git a/app/servers.ts b/app/servers.ts new file mode 100644 index 0000000..aa52cbb --- /dev/null +++ b/app/servers.ts @@ -0,0 +1,11 @@ +export const SERVERS = [ + //'wss://cdn.rosetta-im.com', + //'ws://10.211.55.2:3000', + //'ws://127.0.0.1:3000', + 'wss://wss.rosetta.im' +]; + +export function selectServer(): string { + const idx = Math.floor(Math.random() * SERVERS.length); + return SERVERS[idx]; +} \ No newline at end of file