All:
I am pretty new to Deepstream, when I try its example of request-response https://deepstream.io/:
// 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 );
});
I wonder if I open multiple provider with same name but different logic(for example I put client.rpc.provide
in several pages and open them all), which one should client.rpc.make
choose?
Thanks