abstract Event emission

This commit is contained in:
Flam3rboy
2021-08-13 13:00:49 +02:00
parent 644430921a
commit 0157028af5
10 changed files with 119 additions and 281 deletions
+1
View File
@@ -40,6 +40,7 @@ export async function Connection(this: Server, socket: WebSocket, request: Incom
socket.deflate.on("data", (chunk) => socket.send(chunk));
}
socket.events = {};
socket.permissions = {};
socket.sequence = 0;