un-subscribeToBroadcast

Posted on
Thu Jan 23, 2020 2:28 pm
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

un-subscribeToBroadcast

How do I unsubscribe from a message that I subscribed to using indigo.server.subscribeToBroadcast()?

For now, I'm just calling indigo.server.subscribeToBroadcast() again but with None as the method/object argument. Not sure if that's correct or not.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Jan 23, 2020 3:02 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: un-subscribeToBroadcast

Currently there isn't a good way to do this. I'm adding it to my ToDo list. I don't believe passing in None for the callback method will work without it logging an error when the broadcast next happens. It should be a benign error, but I would expect something to be logged.

In the mean time you might want to call indigo.server.subscribeToBroadcast with a "CallbackNOP" method that you've defined that does nothing.

Image

Posted on
Thu Jan 23, 2020 3:43 pm
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: un-subscribeToBroadcast

Ok, doing it that way for now.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 8 guests