Read the statement by Michael Teeuw here.
Issue with sendSocketNotification and socketNotificationReceived
-
I was just on my way coping the part be a little more patient @KirAsh4 😅
-
You hit Submit! Hahahahahaha …
-
Yaaaah… On my phone right now it’s a bit hard here to do stuff like that :laughing:
-
Sorry, it was funny. I’ll go back to my dark cave now. :)
-
@paviro I’ll try that now! Thanks!
-
A quick test didn’t resolve the issue. But, I’m digging in further.
-
@paviro Thanks so much for pointing me in the right direction. I have the bare bones module working. I still have some things to do, namely:
- Show more than one message, with prior messages truncated and reduced in size
- Time stamp messages
- Possibly add from, to allow for multiple senders
-and- - Provide code for a companion app that will allow sending messages to the mirror.
Once I clean the core up I’m going to post it to a public git repository.
Thanks again for your help. (Curiously, how do I mark the original post as solved?)
-B
-
@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! :)