Skip to content

Instantly share code, notes, and snippets.

@carlogilmar
Last active July 27, 2017 16:20
Show Gist options
  • Save carlogilmar/14103ad6243d1dbc7f7be062e798958f to your computer and use it in GitHub Desktop.
Save carlogilmar/14103ad6243d1dbc7f7be062e798958f to your computer and use it in GitHub Desktop.
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