diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-20 23:34:54 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-20 23:34:54 +0200 |
commit | cdbb54bb3c5915556cd69b44a9eaef49c3d19d50 (patch) | |
tree | cf4ceb6f2cb52e285c6e3c2c7c173104ebe6c0cc /gateway/src/util/Send.ts | |
parent | Merge branch 'master' into unittests (diff) | |
download | server-cdbb54bb3c5915556cd69b44a9eaef49c3d19d50.tar.xz |
:art: rewrite imports
Diffstat (limited to 'gateway/src/util/Send.ts')
-rw-r--r-- | gateway/src/util/Send.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gateway/src/util/Send.ts b/gateway/src/util/Send.ts index 1b00e361..ff8aefc9 100644 --- a/gateway/src/util/Send.ts +++ b/gateway/src/util/Send.ts @@ -2,9 +2,7 @@ var erlpack: any; try { erlpack = require("erlpack"); } catch (error) {} -import { Payload } from "@fosscord/gateway/util/Constants"; - -import WebSocket from "./WebSocket"; +import { Payload, WebSocket } from "@fosscord/gateway"; export async function Send(socket: WebSocket, data: Payload) { let buffer: Buffer | string; @@ -20,7 +18,7 @@ export async function Send(socket: WebSocket, data: Payload) { } return new Promise((res, rej) => { - socket.send(buffer, (err) => { + socket.send(buffer, (err: any) => { if (err) return rej(err); return res(null); }); |