Created
April 7, 2018 23:24
-
-
Save yuriatgoogle/fab1e18ccfdd5ea86a216c36ee7101ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements the SayHello RPC method. | |
*/ | |
function sayHello(call, callback) { | |
sleep.sleep(getRandomInt(5)); | |
callback(null, {message: 'Hello ' + call.request.name}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment