summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/gateway/events/Message.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gateway/events/Message.ts b/src/gateway/events/Message.ts
index 12b6f8b9..a88495f6 100644
--- a/src/gateway/events/Message.ts
+++ b/src/gateway/events/Message.ts
@@ -16,7 +16,7 @@ export async function Message(this: WebSocket, buffer: WS.Data) {
 	// TODO: compression
 	var data: Payload;
 
-	if ((buffer instanceof Buffer && buffer[0] === 123) ||
+	if ((buffer instanceof Buffer && buffer[0] === 123) ||	// ASCII 123 = `{`. Bad check for JSON
 		(typeof buffer === "string")) {
 		data = bigIntJson.parse(buffer.toString());
 	}