Enabled the websocket transport by default and fix up the mqtt websocket demo so you get a random client id by default.

This commit is contained in:
Hiram Chirino 2013-10-10 11:38:02 -04:00
parent 6773b8ff76
commit 51cf06be54
3 changed files with 5 additions and 2 deletions

View File

@ -114,6 +114,7 @@
<transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
<transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
</transportConnectors>
<!-- destroy the spring context on shutdown to stop jetty -->

View File

@ -41,7 +41,7 @@
<div class="control-group">
<label>Port</label>
<div class="controls">
<input name=url id='connect_port' value='61623' type="text">
<input name=url id='connect_port' value='61614' type="text">
</div>
</div>
<div class="control-group">
@ -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>\

View File

@ -35,7 +35,7 @@
<div class="control-group">
<label>WebSocket URL</label>
<div class="controls">
<input name=url id='connect_url' value='ws://localhost:61623' type="text">
<input name=url id='connect_url' value='ws://localhost:61614' type="text">
</div>
</div>
<div class="control-group">