Abstraction layer to simplify bidirectional communication to WebWorker.