A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Issue with sendSocketNotification and socketNotificationReceived
-
@BROSS glad to hear! Don’t forget to present your finished module on the forum! :)
Seems like you figured the mark as solved part out yourself :smiley: -
@paviro said in Issue with sendSocketNotification and socketNotificationReceived:
Only had a quick look at your code but it seems like you are not sending anything from the UI JavaScript to the
node_helper
. In order for thenode_helper
to be able to communicate with the module’s JavaScript you have to open the socket connection by sending some kind of initial message to the helper first. So you can probably fix it by addingthis.sendSocketNotification("hello")
to thestart
function of yourlovenotes.js
.Thank you! This helped a lot!!!
-
Glad it helped! :)