【文件属性】:
文件名称:dnode-tarantula:node.js 的双向 RPC
文件大小:15KB
文件格式:ZIP
更新时间:2021-07-04 07:31:42
JavaScript
狼蛛
dnode-tarantula 是基于 dnode-protocol 和 TCP 套接字的 node.js 异步 rpc 和事件系统。 这是分支
特征
自动重连
双向和多向通信
活动
安装
npm install dnode-tarantula
例子
还要检查
服务器.js:
var dnode = require ( 'dnode-tarantula' ) ;
var server = new dnode . Server ( {
transform : function ( a , b , cb ) {
cb ( a + b , 'Hello from Spider!' ) ;
}
} , { port : 5000 , host : 'localhost' } ) ;
server . on ( 'connection' , function ( remote )
【文件预览】:
dnode-tarantula-master
----.gitignore(108B)
----package.json(792B)
----index.js(447B)
----examples()
--------clusterAndRedis()
--------redisStore()
--------ping()
--------simple()
----README.md(3KB)
----lib()
--------Client.js(6KB)
--------store.js(781B)
--------parser.js(1KB)
--------Server.js(12KB)
--------logger.js(2KB)
--------packer.js(563B)
----stores()
--------redis.js(3KB)
--------memory.js(1KB)