Last active
July 27, 2017 16:20
-
-
Save carlogilmar/14103ad6243d1dbc7f7be062e798958f 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
vertx.eventBus().consumer("com.makingdevs.ping"){ message -> | |
println "Message Received: ${message.body()}" // Pong! | |
message.reply("ping") | |
} | |
vertx.eventBus().send("com.makingdevs.ping", "pong"){ reply -> | |
if(reply.suceeded()){ | |
println "Reply Received: ${reply.result().body()}" // Ping! | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment