用于网格的基本 RPC 系统。 允许您执行远程操作并接收响应。
总线示例:
var ros = require ( "ros" ) ;
var mesh = require ( "mesh" ) ;
var io = require ( "socket.io" ) ;
var memory = require ( "mesh-memory" ) ;
function realtime ( options , appBus ) {
var client = io ( options ) ;
return ros ( client . on . bind ( client , "message" ) , client . emit . bind ( "message" ) , appBus ) ;
}
// local
var bus = realtime (
评论0
最新资源