Permalink
Browse files

Update generated files

  • Loading branch information...
1 parent 7ae98b1 commit 5574ef380e1208419c9da7d2c72b08004041d91b @tsegismont tsegismont committed Jan 2, 2017
@@ -2,7 +2,15 @@
def eb = vertx.eventBus()
eb.consumer("news-feed", { message ->
- println("Received news: ${message.body()}")
+ println("Received news on consumer 1: ${message.body()}")
+})
+
+eb.consumer("news-feed", { message ->
+ println("Received news on consumer 2: ${message.body()}")
+})
+
+eb.consumer("news-feed", { message ->
+ println("Received news on consumer 3: ${message.body()}")
})
println("Ready!")
@@ -2,7 +2,15 @@
var eb = vertx.eventBus();
eb.consumer("news-feed", function (message) {
- console.log("Received news: " + message.body());
+ console.log("Received news on consumer 1: " + message.body());
+});
+
+eb.consumer("news-feed", function (message) {
+ console.log("Received news on consumer 2: " + message.body());
+});
+
+eb.consumer("news-feed", function (message) {
+ console.log("Received news on consumer 3: " + message.body());
});
console.log("Ready!");
@@ -3,5 +3,5 @@ var server = vertx.createHttpServer({
});
server.requestHandler(function (req) {
- req.response().putHeader("content-type", "text/html").end("<html><body>" + "<h1>Hello from vert.x!</h1>" + "<p>version = " + req.version() + "</p>" + "</body></html>");
+ req.response().putHeader("content-type", "text/html").end("<html><body><h1>Hello from vert.x!</h1><p>version = " + req.version() + "</p></body></html>");
}).listen(8080);
@@ -9,5 +9,5 @@ var server = vertx.createHttpServer({
});
server.requestHandler(function (req) {
- req.response().putHeader("content-type", "text/html").end("<html><body>" + "<h1>Hello from vert.x!</h1>" + "<p>version = " + req.version() + "</p>" + "</body></html>");
+ req.response().putHeader("content-type", "text/html").end("<html><body><h1>Hello from vert.x!</h1><p>version = " + req.version() + "</p></body></html>");
}).listen(8443);
@@ -2,7 +2,15 @@
eb = $vertx.event_bus()
eb.consumer("news-feed") { |message|
- puts "Received news: #{message.body()}"
+ puts "Received news on consumer 1: #{message.body()}"
+}
+
+eb.consumer("news-feed") { |message|
+ puts "Received news on consumer 2: #{message.body()}"
+}
+
+eb.consumer("news-feed") { |message|
+ puts "Received news on consumer 3: #{message.body()}"
}
puts "Ready!"

0 comments on commit 5574ef3

Please sign in to comment.