<?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[Same notif received multiple time]]></title><description><![CDATA[<p dir="auto">I sometime receive the same notification multiple time, like if the mirror run my module twice or something. It’s not happening every time.<br />
As an example, I have a module that send a socket notification in the start function to the node helper to  initialise something. let’s call it Notif_A.<br />
l catch it the notification, make sure it’s Notif_A with an if statement,  and  When the node helper did it’s job it send back the data he got. still with a send socket notification Let’s call it Notif_B.<br />
The odd thing is that I sometime got into the if that check if it received Notif_B twice in a row. Like if I got the notif twice.<br />
The thing is, I only send Notif_A  in the start function And I only send Notif_B if I received Notif_A.</p>
<p dir="auto">I also noticed that the getDom function on some modules are callde 2 or 3 time in the raw at the begining (I checked with console.log)</p>
<p dir="auto">So… what’s happening here ? Why is the notification is catched twice ? Is the start function runned twice for some reason ?</p>
]]></description><link>https://forum.magicmirror.builders/topic/2706/same-notif-received-multiple-time</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 11:35:10 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/2706.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 Jun 2017 13:36:55 GMT</pubDate><ttl>60</ttl></channel></rss>