Local 是一个对 Web Worker 的 postMessage API 进行封装的 HTTP 抽象层,允许本地服务器在浏览器上使用多线程方式运行,使用作为运行不被信任的软件的容器。
This release adds the function main(req, res) interface for workers, autodestroys workers which were autospawned to handle a request ("temp" workers) and includes redesigned documentation, now hosted at httplocal.com.
Local.js 0.6.2 改进内容包括:
为 workers 增加了 main(req,res) 接口
重新设计文档,启用 httplocal.com 域名
importScripts now uses the main worker's origin to resolve relative URIs.
importScripts is disabled after the first execution of the Worker in order to prevent information-leaking.
下载地址:https://github.com/pfraze/local/releases/tag/0.6.2
来自:开源中国社区

