socket-function 1.1.41 → 1.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/callManager.ts +2 -1
package/package.json
CHANGED
package/src/callManager.ts
CHANGED
|
@@ -86,7 +86,8 @@ export function registerClass(classGuid: string, controller: SocketExposedInterf
|
|
|
86
86
|
noFunctionMeasure?: boolean;
|
|
87
87
|
}) {
|
|
88
88
|
if (!globalThis.isHotReloading?.() && classes[classGuid]) {
|
|
89
|
-
|
|
89
|
+
console.warn(`Class ${classGuid} already registered. This is normal if you are using multiple copies of socket-function at once.`);
|
|
90
|
+
return;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
if (!config?.noFunctionMeasure) {
|