summary refs log tree commit diff
path: root/gateway/src/events/Connection.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-13 13:00:49 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-13 13:00:49 +0200
commit06fc341e2a6a34f13227a277cfc559b9e108befb (patch)
tree369885fe28a439891d5175249f8711fd09d39442 /gateway/src/events/Connection.ts
parent:sparkles: event emit (diff)
downloadserver-06fc341e2a6a34f13227a277cfc559b9e108befb.tar.xz
abstract Event emission
Diffstat (limited to 'gateway/src/events/Connection.ts')
-rw-r--r--gateway/src/events/Connection.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/gateway/src/events/Connection.ts b/gateway/src/events/Connection.ts
index 1ef9fb48..5fbcbff5 100644
--- a/gateway/src/events/Connection.ts
+++ b/gateway/src/events/Connection.ts
@@ -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;