bl-layer-loader
bl-layer-loader copied to clipboard
Simple Communication API for the code running inside/outside Web Workers
https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers#Passing_data_by_transferring_ownership_(transferable_objects) Since this is meant for message passing, it should be ok that the sender no longer has the message after sending. However, if using this for flux/redux (the whole...
to be added !
https://github.com/nsisodiya/flux-inside-web-workers/blob/master/js/domless/worker.js ``` js bridge.on("/actions/TodoActions/addTodo", function (payload, sendBack, path) { TodoActions.addTodo(payload); }); bridge.on("/actions/TodoActions/markComplete", function (payload, sendBack, path) { TodoActions.markComplete(payload); }); ``` Instead of above code, one should be able to work...