<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Use node_helper.js functionality in config file]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am building an app with different buttons which the user can define for them selfes what happens when they are pressed. This information is located in the configuration array:</p>
<pre><code>config = {
    button : {
        name : "bla",
        callback : function(){}
    }
}
</code></pre>
<p dir="auto">and the class organnizing it has a refrence to that button and subscribes to the click event and triggers said callback when clicked.<br />
How can I use module.sendSocketNotification in this configuration for the button callback?</p>
]]></description><link>https://forum.magicmirror.builders/topic/6259/use-node_helper-js-functionality-in-config-file</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 17:22:58 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/6259.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 Jan 2018 18:04:16 GMT</pubDate><ttl>60</ttl></channel></rss>