PrivateexpressPrivatesocketioCalled in the constructor — safe for synchronous field setup, no server access yet.
Called by Core after name and path are set but before start().
Registers an Express route under the module's own path prefix (/<moduleName>).
Only available when the manifest grants express.route.
Broadcasts a notification to all clients connected to this module's namespace.
Receives every socket event emitted by the module's client-side counterpart.
Override this instead of wiring socketio.on directly.
Async setup hook — open DB connections, start timers, etc. Called once at startup.
Teardown hook — cancel timers, close connections.
Base class for module server-side helpers.
A helper runs in the Node process and backs a single module. Override the lifecycle hooks (
init,loaded,start,stop) andsocketNotificationReceivedto implement module behaviour. UsesendSocketNotificationandregisterRouteto communicate outward.