summary refs log tree commit diff
path: root/gateway/src/util/Send.ts
diff options
context:
space:
mode:
Diffstat (limited to 'gateway/src/util/Send.ts')
-rw-r--r--gateway/src/util/Send.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/gateway/src/util/Send.ts b/gateway/src/util/Send.ts
index 0210d9dd..4defa898 100644
--- a/gateway/src/util/Send.ts
+++ b/gateway/src/util/Send.ts
@@ -2,9 +2,7 @@ var erlpack: any;
 try {
 	erlpack = require("@yukikaze-bot/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);
 		});