diff --git a/src/util/util/Constants.ts b/src/util/util/Constants.ts index 34e925e5..df4501fc 100644 --- a/src/util/util/Constants.ts +++ b/src/util/util/Constants.ts @@ -52,23 +52,6 @@ export const WsStatus = { RESUMING: 8, }; -/** - * The current status of a voice connection. Here are the available statuses: - * * CONNECTED: 0 - * * CONNECTING: 1 - * * AUTHENTICATING: 2 - * * RECONNECTING: 3 - * * DISCONNECTED: 4 - * @typedef {number} VoiceStatus - */ -export const VoiceStatus = { - CONNECTED: 0, - CONNECTING: 1, - AUTHENTICATING: 2, - RECONNECTING: 3, - DISCONNECTED: 4, -}; - export const OPCodes = { DISPATCH: 0, HEARTBEAT: 1, @@ -84,22 +67,6 @@ export const OPCodes = { HEARTBEAT_ACK: 11, }; -export const VoiceOPCodes = { - IDENTIFY: 0, - SELECT_PROTOCOL: 1, - READY: 2, - HEARTBEAT: 3, - SESSION_DESCRIPTION: 4, - SPEAKING: 5, - HEARTBEAT_ACK: 6, - RESUME: 7, - HELLO: 8, - RESUMED: 9, - CLIENT_CONNECT: 12, // incorrect, op 12 is probably used for video - CLIENT_DISCONNECT: 13, // incorrect - VERSION: 16, //not documented -}; - export const Events = { RATE_LIMIT: "rateLimit", CLIENT_READY: "ready", diff --git a/src/webrtc/util/Constants.ts b/src/webrtc/util/Constants.ts index b28ec94e..f11c95fd 100644 --- a/src/webrtc/util/Constants.ts +++ b/src/webrtc/util/Constants.ts @@ -18,14 +18,6 @@ import { Payload } from "@spacebar/gateway"; -export enum VoiceStatus { - CONNECTED = 0, - CONNECTING = 1, - AUTHENTICATING = 2, - RECONNECTING = 3, - DISCONNECTED = 4, -} - export enum VoiceOPCodes { IDENTIFY = 0, SELECT_PROTOCOL = 1,