【文件属性】:
文件名称:pomelo-rpc-ext
文件大小:59KB
文件格式:ZIP
更新时间:2021-05-28 11:11:40
JavaScript
#pomelo-rpc-ws-pomelo的rpc框架
##安装
npm install pomelo-rpc-ws
修改柚app.js
var wsrpc = require('pomelo-rpc-ws');
app.configure('production|development', function() {
app.set('proxyConfig', {
rpcClient: wsrpc.client
});
app.set('remoteConfig', {
rpcServer: wsrpc.server
});
});
pomelo-rpc-ws是pomelo项目的低级RPC框架。 它包含两个部分:客户端和服务器。
客户端部分生成RPC客户端代理,将消息路由到适当的远程服务器,并管理网络通信。 支持动态
【文件预览】:
pomelo-rpc-ext-master
----.jshintrc(359B)
----AUTHORS(74B)
----README-Chinese.md(5KB)
----lib()
--------rpc-client()
--------util()
--------rpc-server()
----.npmignore(70B)
----.travis.yml(36B)
----LICENSE(1KB)
----test()
--------rpc-client()
--------util()
--------rpc-server()
--------mock-remote()
----README.md(5KB)
----Makefile(385B)
----sample()
--------server.js(294B)
--------client.js(2KB)
--------remote()
----index.js(122B)
----package.json(743B)