简体   繁体   English

Flux(Facebook)通过套接字处理服务器端更新吗

[英]Do Flux (by Facebook) handle server side update with sockets

I'm looking for Flux combined with React and I read a lot's about Dispatcher, Actions and Store. 我正在寻找将FluxReact结合使用,并且阅读了很多有关Dispatcher,Actions和Store的内容。 But I didn't understand if Flux handle (natively) data update on server side by broadcasting sockets as 'Actions' ? 但是我不知道Flux是否通过将套接字广播为“动作”来(本地)处理服务器端的数据更新? (like MeteorJS do with publish/subscribe ) (就像MeteorJS一样进行发布/订阅

Or do I have to handle an external API and sockets call alone ? 还是我必须单独处理外部API和套接字调用?

No, this is not handled by the library at all. 不,这根本没有库处理。 Any implementation of this functionality would need to happen in user code (or in some other library). 此功能的任何实现都需要在用户代码(或某些其他库)中进行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM