Sha256: 7abe1d5a12668bab3bfe2cfa0393883977551d82c7b9c7551c1058283b434e0b

Contents?: true

Size: 354 Bytes

Versions: 3

Compression:

Stored size: 354 Bytes

Contents

$(function() {
  var eb = new vertx.EventBus("/eventbus");

  eb.onopen = function() {
                eb.registerHandler("chat", function(data) {
                  $("#updates").append(data + "<br/>");
                });
              }

  $("#send").click(function() {
    eb.publish("chat", $("#content").val());
    $("#content").val("");
  });
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jubilee-1.0.2 examples/chatapp/public/assets/javascripts/application.js
jubilee-1.0.1 examples/chatapp/public/assets/javascripts/application.js
jubilee-1.0.0 examples/chatapp/public/assets/javascripts/application.js