Expose the dedicated web worker api as a duplex stream, for use inside a worker.