Skip to content

Instantly share code, notes, and snippets.

@jmarnold
Created June 17, 2011 21:56
Show Gist options
  • Save jmarnold/1032449 to your computer and use it in GitHub Desktop.
Save jmarnold/1032449 to your computer and use it in GitHub Desktop.
Example bootstrapping
jBus.routing.initialize(function() {
this.connectTo('ws://jmarnold-logist:8181');
this.on('TimestampCaseCommand', function(msg) {
$('#Case1').find('.checkpoint-' + msg.Checkpoint).html(msg.Value);
});
this.on('PulseCommand', function(msg) {
$('#Pulse').html(msg.Message);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment