Skip to content

Commit

Permalink
feat(Constants): add constants for states
Browse files Browse the repository at this point in the history
  • Loading branch information
Fab1o0107 committed Dec 19, 2023
1 parent 7e43770 commit 97048ab
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/Constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
export enum State {
Connecting = 0,
Nearly = 1,
Connected = 2,
Reconnecting = 3,
Disconnecting = 4,
Disconnected = 5
}

export enum VoiceState {
SessionReady = 0,
SessionIdMissing = 1,
SessionEndpointMissing = 2,
SessionFailedUpdate = 3
}

export enum OpCodes {
PlayerUpdate = "playerUpdate",
Stats = "stats",
Event = "event",
Ready = "ready"
}

export const RedisKey = {
NodeSession: (name: string) => `icelink:node:${name}:session`,
NodePlayers: (name: string) => `icelink:node:${name}:players`
};

0 comments on commit 97048ab

Please sign in to comment.