跨用户同步骨干模型状态的最简单方法是什么? Node.js
跨用户同步骨干模型状态的最简单方法是什么?我正在运行一个 Node.js 服务器。所有通信都是通过 websocket 完成的。我想对其进行设置,以便可以将模型推送到不同的客户端,并且如果进行任何更改,任何共享模型都会自动维护所有这些客户端的状态。
最简单/最可靠的方法是什么?
谢谢!
What's the easiest way to sync the state of backbone models across users? I'm running a node.js server. All communication is done vis websockets. I want to set it up so that models can be pushed to different clients and any shared models automatically maintain state across all these clients if any changes are made.
What is the easiest / most reliable way to do this?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为 Backbone.IO 可以帮助你:https://github.com/ scttnlsn/backbone.io
可以轻松地在用户之间共享模型。
I think that Backbone.IO can help you: https://github.com/scttnlsn/backbone.io
It's easy to share models across users with that.