From 3994368f3c5488baf1fd930bb569f7e2514eee23 Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Wed, 25 Oct 2023 00:01:28 -0400 Subject: [PATCH] Comments --- src/ws/Socket.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ws/Socket.ts b/src/ws/Socket.ts index 1560257..a03ba32 100644 --- a/src/ws/Socket.ts +++ b/src/ws/Socket.ts @@ -1,3 +1,9 @@ +/** + * Socket connection module + * + * Represents user connections + */ + import { createColor, createID, createUserID } from "../util/id"; import EventEmitter from "events"; import { @@ -303,6 +309,7 @@ export class Socket extends EventEmitter { public async userset(name?: string, color?: string) { let isColor = false; + // Color changing if (color && config.enableColorChanging) { isColor = typeof color === "string" && !!color.match(/^#[0-9a-f]{6}$/i);