MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Communication from node helper to module: Taking too long

    Development
    2
    7
    1845
    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.
    • S
      sharmmoh1983 last edited by

      Hi All

      I have noticed one pattern while calling sendSocketNotification method of node helper i.e

      About 6-7 secs are getting consumed from sendSocketNotification in node helper to socketNotificationReceived in Module

      And this is happening across all modules which are present in Magic Mirror

      This is resulting in very slow response in Magic Mirror

      Has anyone faced such issue? My wifi network is fine as myother api calls are happening fine

      cowboysdude 1 Reply Last reply Reply Quote 0
      • cowboysdude
        cowboysdude Module Developer @sharmmoh1983 last edited by

        @sharmmoh1983 Well that can be due to so many modules all making the same call.

        It will tend to show a small delay as it processes them as quickly as it possibly can.

        1 Reply Last reply Reply Quote 0
        • S
          sharmmoh1983 last edited by

          No only one module is making the call

          1 Reply Last reply Reply Quote 0
          • cowboysdude
            cowboysdude Module Developer last edited by

            Which module or are you just talking about ‘a’ module in general?

            1 Reply Last reply Reply Quote 0
            • S
              sharmmoh1983 last edited by

              I am talking about two modules in magic mirror which are having node helpers and issue is happening in both of them while communicating from node helper to their respective modules

              1 Reply Last reply Reply Quote 0
              • cowboysdude
                cowboysdude Module Developer last edited by

                Which 2? Depending on what info they are calling for could be the delay

                1 Reply Last reply Reply Quote 0
                • S
                  sharmmoh1983 last edited by

                  I am calling :

                  Node_helper:

                  self.sendSocketNotification(‘SONUS’, sonus);

                  Module:

                  socketNotificationReceived: function (notification, payload) {
                  receivedNotification(this,notification,payload);
                  }

                  It is taking seven seconds from Node helper to Module

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy