Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想制作一个仅定期检查更新的应用程序,并且不需要在整个活动期间都打开连接。没有黑客这可能吗?
无法断开客户端与服务器的连接。您最多可以做的是停止在服务器上运行 Meteor,然后定期启动并再次关闭它,我不建议这样做。
Meteor 的设计初衷就是始终保持连接。从实时模板到客户端 Minimongo 缓存的一切都依赖于该连接的工作,所以如果你禁用它,你会故意破坏 Meteor 的一个基本层,这应该可以为你节省很多麻烦。