Remove unnessesary async and close on error in gateway

This commit is contained in:
Madeline
2022-07-22 21:30:19 +10:00
parent d5965f05d3
commit e55ad7ee3d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ try {
}
import { Payload, WebSocket } from "@fosscord/gateway";
export async function Send(socket: WebSocket, data: Payload) {
export function Send(socket: WebSocket, data: Payload) {
let buffer: Buffer | string;
if (socket.encoding === "etf") buffer = erlpack.pack(data);
// TODO: encode circular object