'init'
This commit is contained in:
9
app/servers.ts
Normal file
9
app/servers.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export const SERVERS = [
|
||||
//'wss://cdn.rosetta-im.com',
|
||||
'ws://10.211.55.2:3000'
|
||||
];
|
||||
|
||||
export function selectServer(): string {
|
||||
const idx = Math.floor(Math.random() * SERVERS.length);
|
||||
return SERVERS[idx];
|
||||
}
|
||||
Reference in New Issue
Block a user