Updated Branches:
  refs/heads/trunk d12dbb322 -> a325f0fbe

Default to a random mqtt client ID so the example works better OOTB

Project: http://git-wip-us.apache.org/repos/asf/activemq-apollo/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-apollo/commit/fcb70685
Tree: http://git-wip-us.apache.org/repos/asf/activemq-apollo/tree/fcb70685
Diff: http://git-wip-us.apache.org/repos/asf/activemq-apollo/diff/fcb70685

Branch: refs/heads/trunk
Commit: fcb706850f505654c3afea2f2d780dc8c639e379
Parents: d12dbb3
Author: Hiram Chirino <[email protected]>
Authored: Thu Jan 30 15:22:39 2014 -0500
Committer: Hiram Chirino <[email protected]>
Committed: Thu Jan 30 15:22:39 2014 -0500

----------------------------------------------------------------------
 apollo-distro/src/main/release/examples/mqtt/websocket/index.html | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-apollo/blob/fcb70685/apollo-distro/src/main/release/examples/mqtt/websocket/index.html
----------------------------------------------------------------------
diff --git a/apollo-distro/src/main/release/examples/mqtt/websocket/index.html 
b/apollo-distro/src/main/release/examples/mqtt/websocket/index.html
index b1b06c6..9463ad6 100644
--- a/apollo-distro/src/main/release/examples/mqtt/websocket/index.html
+++ b/apollo-distro/src/main/release/examples/mqtt/websocket/index.html
@@ -101,6 +101,8 @@
     <script src="js/mqttws31.js"></script>
     <script>//<![CDATA[
 $(document).ready(function(){
+
+  $("#connect_clientId").val("example-"+(Math.floor(Math.random() * 100000)));
   if( !window.WebSocket) {
     $("#connect").html("\
         <h1>Get a new Web Browser!</h1>\

Reply via email to