selection of known hosts to form (#4379)

This commit is contained in:
Joseph Chamish 2021-06-15 03:12:17 -04:00 committed by GitHub
parent c9ddd042fc
commit a65ce8694c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 61 additions and 22 deletions

View file

@ -16,6 +16,16 @@ export enum StatusEnumLabel {
"Disconnecting" = 99
}
export enum KnownHost {
ROOSTER = 'Rooster',
TETRARCH = 'Tetrarch',
}
export const KnownHosts = {
[KnownHost.ROOSTER]: { port: 443, host: 'server.cockatrice.us', },
[KnownHost.TETRARCH]: { port: 443, host: 'mtg.tetrarch.co/servatrice'},
}
export const getStatusEnumLabel = (statusEnum: number) => {
if (StatusEnumLabel[statusEnum] !== undefined) {
return StatusEnumLabel[statusEnum];