MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Issue with sendSocketNotification and socketNotificationReceived

    Scheduled Pinned Locked Moved Solved Development
    13 Posts 4 Posters 10.0k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • paviroP Offline
      paviro Admin @BROSS
      last edited by paviro

      @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:

      We're all stories in the end. Just make it a good one, eh?

      – The Doctor

      1 Reply Last reply Reply Quote 0
      • S Offline
        Shampooman @paviro
        last edited by

        @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 the node_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 adding this.sendSocketNotification("hello") to the start function of your lovenotes.js.

        Thank you! This helped a lot!!!

        1 Reply Last reply Reply Quote 1
        • paviroP Offline
          paviro Admin
          last edited by

          Glad it helped! :)

          We're all stories in the end. Just make it a good one, eh?

          – The Doctor

          1 Reply Last reply Reply Quote 0
          • 1
          • 2
          • 2 / 2
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy