30.10.2021, 13:15
(29.10.2021, 10:19)admin Wrote: Try this:
Code:localbus.unlistenobject = function(addr, callback) {
var id = localbus.encodega(addr);
if (id) {
var callbacks = localbus.listeners.object[ id ];
if (callbacks) {
var index = callbacks.indexOf(callback);
if (index >= 0) {
cbs.splice(index, 1);
}
}
}
};
Yes! Perfect. Thanks.
Is there also a way to wait for the localbus initialization process to finish? It does not return a promise or such so now we do not know when all object states are received and socket is connected...
Thanks again!