summary refs log tree commit diff
path: root/gateway/src/util
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-12 23:32:55 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-12 23:32:55 +0200
commit33533fc183d3dce4abcb49d76c2d14bdb26e771a (patch)
tree388837320acfb6d0d04993b258207e1d814ba0d1 /gateway/src/util
parentMerge pull request #353 from AlTech98/dummy-routes (diff)
parent:sparkles: #307 done (diff)
downloadserver-33533fc183d3dce4abcb49d76c2d14bdb26e771a.tar.xz
Merge branch 'typescript-interface-body-parser+autogenerate-unit-tests+documentation'
Diffstat (limited to '')
-rw-r--r--gateway/src/util/Send.ts2
-rw-r--r--gateway/src/util/WebSocket.ts3
-rw-r--r--gateway/src/util/index.ts5
3 files changed, 7 insertions, 3 deletions
diff --git a/gateway/src/util/Send.ts b/gateway/src/util/Send.ts

index be25ac4f..1b00e361 100644 --- a/gateway/src/util/Send.ts +++ b/gateway/src/util/Send.ts
@@ -2,7 +2,7 @@ var erlpack: any; try { erlpack = require("erlpack"); } catch (error) {} -import { Payload } from "../util/Constants"; +import { Payload } from "@fosscord/gateway/util/Constants"; import WebSocket from "./WebSocket"; diff --git a/gateway/src/util/WebSocket.ts b/gateway/src/util/WebSocket.ts
index 2c763743..15d1549f 100644 --- a/gateway/src/util/WebSocket.ts +++ b/gateway/src/util/WebSocket.ts
@@ -1,5 +1,5 @@ import { Intents, Permissions } from "@fosscord/util"; -import WS, { Server, Data } from "ws"; +import WS from "ws"; import { Deflate } from "zlib"; import { Channel } from "amqplib"; @@ -21,4 +21,3 @@ interface WebSocket extends WS { } export default WebSocket; -export { Server, Data }; diff --git a/gateway/src/util/index.ts b/gateway/src/util/index.ts new file mode 100644
index 00000000..27af5813 --- /dev/null +++ b/gateway/src/util/index.ts
@@ -0,0 +1,5 @@ +export * from "./Constants"; +export * from "./Send"; +export * from "./SessionUtils"; +export * from "./setHeartbeat"; +export * from "./WebSocket";