• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Communication from node helper to module: Taking too long

Scheduled Pinned Locked Moved Development
7 Posts 2 Posters 2.5k Views 1 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.
  • S Offline
    sharmmoh1983
    last edited by Oct 10, 2017, 1:14 AM

    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

    C 1 Reply Last reply Oct 10, 2017, 1:42 AM Reply Quote 0
    • C Offline
      cowboysdude Module Developer @sharmmoh1983
      last edited by Oct 10, 2017, 1:42 AM

      @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 Offline
        sharmmoh1983
        last edited by Oct 10, 2017, 1:47 AM

        No only one module is making the call

        1 Reply Last reply Reply Quote 0
        • C Offline
          cowboysdude Module Developer
          last edited by Oct 10, 2017, 1:51 AM

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

          1 Reply Last reply Reply Quote 0
          • S Offline
            sharmmoh1983
            last edited by Oct 10, 2017, 2:00 AM

            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
            • C Offline
              cowboysdude Module Developer
              last edited by Oct 10, 2017, 2:06 AM

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

              1 Reply Last reply Reply Quote 0
              • S Offline
                sharmmoh1983
                last edited by Oct 10, 2017, 5:41 AM

                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
                1 / 1
                • First post
                  1/7
                  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