Skip to content

fix: prevent crash when config is undefined in socket handler#4096

Merged
khassel merged 1 commit intoMagicMirrorOrg:developfrom
KristjanESPERANTO:fix/config-undefined
Apr 7, 2026
Merged

fix: prevent crash when config is undefined in socket handler#4096
khassel merged 1 commit intoMagicMirrorOrg:developfrom
KristjanESPERANTO:fix/config-undefined

Conversation

@KristjanESPERANTO
Copy link
Copy Markdown
Collaborator

If a module uses this.io.of() to register a custom socket.io namespace, connections on that namespace trigger the onAny handler in setSocketIO before config is set, causing a TypeError.

Fixes #4089

If a module uses this.io.of() to register a custom socket.io namespace,
connections on that namespace trigger the onAny handler in setSocketIO
before config is set, causing a TypeError.

Fixes MagicMirrorOrg#4089
@khassel khassel merged commit d8c29d5 into MagicMirrorOrg:develop Apr 7, 2026
12 checks passed
@KristjanESPERANTO KristjanESPERANTO deleted the fix/config-undefined branch April 7, 2026 19:46
@sdetweil
Copy link
Copy Markdown
Collaborator

sdetweil commented Apr 7, 2026

thanks..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants