全部:
当我尝试请求响应https://deepstream.io/的示例时,我对 Deepstream 还是很陌生:
// remote procedure call for "times-three" with 7
client.rpc.make( "times-three", 7, function( err, result ){
// And get 21 back
console.log( result );
});
// register as a provider
client.rpc.provide( 'times-three', function( num, response ){
// ...and respond to requests
response.send( num * 3 );
});
我想知道我是否打开了多个名称相同但逻辑不同的提供程序(例如我放client.rpc.provide
了几个页面并全部打开),应该client.rpc.make
选择哪一个?
谢谢