1. 首页
  2. 考试认证
  3. 其它
  4. nexus uplink simple server

nexus uplink simple server

上传者: 2024-12-10 16:38:46上传 ZIP文件 23.33KB 热度 6次

Nexus上行服务器(简单)

Nexus Uplink是一个非常简单的轻量级协议,可以在其上实现Flux over the Wire。Nexus Uplink客户端可以对存储更新和调度操作做出React。Nexus Uplink Server可以对动作分派和更新存储做出React。

简要地:动作通过POST请求传输(url路径名是动作标识符,JSON编码的主体是有效载荷);更新通过Websocket(或Engine.IO回退)传输(作为diff对象)。这个包是Nexus Uplink服务器端协议的一个简单(但有效)的实现。另请参阅Nexus Uplink客户端协议的。

例子在服务器上:


var server = new UplinkSimpleServer({ pid: _.guid('pid') })

下载地址
用户评论