summary refs log tree commit diff
path: root/gateway/src/util/WebSocket.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-24 10:43:43 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-24 10:43:43 +0200
commit9abb04d2e6fcc2567ddafc2dc753cbb0c79ca930 (patch)
treea9ce1cd54d5dd50023e1a1c5d0a494802f37b5e6 /gateway/src/util/WebSocket.ts
parent:sparkles: added User flags (diff)
parent:art: remove start from setup script (diff)
downloadserver-9abb04d2e6fcc2567ddafc2dc753cbb0c79ca930.tar.xz
Merge branch 'master' of https://github.com/fosscord/fosscord-server
Diffstat (limited to '')
-rw-r--r--gateway/src/util/WebSocket.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/gateway/src/util/WebSocket.ts b/gateway/src/util/WebSocket.ts

index 2c763743..b80265a7 100644 --- a/gateway/src/util/WebSocket.ts +++ b/gateway/src/util/WebSocket.ts
@@ -1,9 +1,9 @@ import { Intents, Permissions } from "@fosscord/util"; -import WS, { Server, Data } from "ws"; +import WS from "ws"; import { Deflate } from "zlib"; import { Channel } from "amqplib"; -interface WebSocket extends WS { +export interface WebSocket extends WS { version: number; user_id: string; session_id: string; @@ -19,6 +19,3 @@ interface WebSocket extends WS { permissions: Record<string, Permissions>; events: Record<string, Function>; } - -export default WebSocket; -export { Server, Data };