km: improve dark mode / switching. mt: add worker log to ui

This commit is contained in:
Stewart Allen 2022-01-07 16:46:05 -05:00
commit d0d9e99ede
5 changed files with 39 additions and 9 deletions

View file

@ -18,6 +18,7 @@ if (moto.client) return;
gapp.register('moto.client', [
"add.array", // dep: add.array
"moto.broker", // dep: moto.broker
]);
function dispatch(topic, message) {
@ -211,6 +212,12 @@ let client = moto.client = {
return;
}
// handle special case for broker publish
if (reply.publish) {
gapp.broker.publish(reply.publish, reply.message);
return;
}
if (worker.run === null) {
console.log({client_unhandled: e});
throw "message on idle worker";