是否可以使用 node.js 在客户端和服务器之间共享数据? [英] Is it possible to share data between the client and the server using node.js?
本文介绍了是否可以使用 node.js 在客户端和服务器之间共享数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
node.js 有没有办法在客户端和服务器之间共享数据(包括对象)?我曾经依赖一个名为 now.js 的模块,它是为此目的而设计的,但是 该项目已经已停产,我正在寻找替代品.既然 now.js 已经被废弃了,还有没有其他方法可以在客户端和服务器之间无缝同步变量?
Is there any way to share data (including objects) between the client and the server in node.js? I used to rely on a module called now.js that was designed for this purpose, but the project has been discontinued, and I'm trying to find a replacement. Is there any other way to seamlessly synchronize variables between the client and the server, now that now.js has been abandoned?
推荐答案
在 now.js 之后,两个最接近的竞争者是 shareJS 和 dnode:
After now.js, the two closest contenders are shareJS and dnode:
https://github.com/substack/dnode
这篇关于是否可以使用 node.js 在客户端和服务器之间共享数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文