From f334cd6f0fdb5d5efc6dfac642f0d34b9e78d888 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Wed, 21 Sep 2022 14:41:21 +1000 Subject: Remove webrtc from bundle --- gateway/src/util/Constants.ts | 4 ++-- gateway/src/util/WebSocket.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'gateway/src') diff --git a/gateway/src/util/Constants.ts b/gateway/src/util/Constants.ts index 5441118b..ff9b5525 100644 --- a/gateway/src/util/Constants.ts +++ b/gateway/src/util/Constants.ts @@ -1,4 +1,4 @@ -import { VoiceOPCodes } from "@fosscord/webrtc"; +// import { VoiceOPCodes } from "@fosscord/webrtc"; export enum OPCODES { Dispatch = 0, @@ -45,7 +45,7 @@ export enum CLOSECODES { } export interface Payload { - op: OPCODES | VoiceOPCodes; + op: OPCODES /* | VoiceOPCodes */; d?: any; s?: number; t?: string; diff --git a/gateway/src/util/WebSocket.ts b/gateway/src/util/WebSocket.ts index d549ec77..930fa78a 100644 --- a/gateway/src/util/WebSocket.ts +++ b/gateway/src/util/WebSocket.ts @@ -1,7 +1,7 @@ import { Intents, Permissions } from "@fosscord/util"; import WS from "ws"; import { Deflate, Inflate } from "fast-zlib"; -import { Client } from "@fosscord/webrtc"; +// import { Client } from "@fosscord/webrtc"; export interface WebSocket extends WS { version: number; @@ -22,5 +22,5 @@ export interface WebSocket extends WS { events: Record; member_events: Record; listen_options: any; - client?: Client; + // client?: Client; } -- cgit 1.5.1