Read the statement by Michael Teeuw here.
sendSocketNotification not working
-
Hi,
Does anybody know whether you can use sendSocketNotification when using nested Request functions?
Basically, the way the api works, is that you have to login to get a sessionID and then I have another request using that sessionID to pull back JSON data. For some reason the second requests sendSocketNotification is working fine, but the first one isn’t.
The first request is definitely working, as the sessionID is being pulled from the response.
I’m trying to do this so I can update the MMM-Hive module as British Gas made some changes and the module no longer works.
-
If you look at the MMM-Hive code, what I am trying to do, is add a sendSocketNotification to the 2nd request in the node_helper.js. The second and third requests in node_helper.js are the ‘nested’ ones.
-
Got this sorted - found there is another url that holds the information so added another request. The request I was having issues with was a post request, whereas the one I am using is a get.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login