Current section

Files

Jump to
zotonic_mod_base priv lib-src cotonic test workers provides-before-connect.js
Raw

priv/lib-src/cotonic/test/workers/provides-before-connect.js

importScripts("/src/polyfill_worker.js",
"/src/cotonic.mqtt.js");
function initialize() {
self.publish("provides-before-connect/done", true);
}
self.provides(["model/provides-before-connect"]);
self.connect({name: "provides-before-connect"})
.then(initialize)