allow engine to override work/pool urls and control threading

This commit is contained in:
Stewart Allen 2025-07-09 01:53:33 -04:00
commit 50e7e88d95
9 changed files with 44 additions and 235 deletions

View file

@ -22,6 +22,7 @@ class Engine {
widget: { [this.widget.id]: {} }
};
this.listener = () => { };
client.start();
}
load(url) {
@ -55,6 +56,14 @@ class Engine {
});
}
setThreading(bool) {
if (bool) {
client.pool.start();
} else {
client.pool.stop();
}
}
setListener(listener) {
this.listener = listener;
return this;