diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-13 13:00:49 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-13 13:00:49 +0200 |
commit | 06fc341e2a6a34f13227a277cfc559b9e108befb (patch) | |
tree | 369885fe28a439891d5175249f8711fd09d39442 /gateway/src/util/WebSocket.ts | |
parent | :sparkles: event emit (diff) | |
download | server-06fc341e2a6a34f13227a277cfc559b9e108befb.tar.xz |
abstract Event emission
Diffstat (limited to '')
-rw-r--r-- | gateway/src/util/WebSocket.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gateway/src/util/WebSocket.ts b/gateway/src/util/WebSocket.ts index 1bd0ff2f..d1e13555 100644 --- a/gateway/src/util/WebSocket.ts +++ b/gateway/src/util/WebSocket.ts @@ -1,4 +1,4 @@ -import { Intents, Permissions } from "@fosscord/server-util"; +import { Intents, Permissions } from "@fosscord/util"; import WS, { Server, Data } from "ws"; import { Deflate } from "zlib"; import { Channel } from "amqplib"; @@ -15,8 +15,8 @@ interface WebSocket extends WS { readyTimeout: NodeJS.Timeout; intents: Intents; sequence: number; - rabbitCh?: Channel & { queues: Record<string, string> }; permissions: Record<string, Permissions>; + events: Record<string, Function>; } export default WebSocket; |