// addons/addon1/index.js // Function called by the main application to initialize the addon export function initialize(nodeIo, config) { console.log(`Initializing ${config.name}`); // Call other functions within the addon module registerSocketEvents(nodeIo, config); // Call additional initialization functions if needed } // Function to register Socket.IO event handlers function registerSocketEvents(nodeIo, config) { nodeIo.on(config.options.eventName, (data) => { console.log(`Received event "${config.options.eventName}" from client:`, data); }); }