mirror of https://github.com/apache/activemq.git
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:
parent
6773b8ff76
commit
51cf06be54
|
@ -114,6 +114,7 @@
|
||||||
<transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
|
<transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
|
||||||
<transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
|
<transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
|
||||||
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
|
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
|
||||||
|
<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
|
||||||
</transportConnectors>
|
</transportConnectors>
|
||||||
|
|
||||||
<!-- destroy the spring context on shutdown to stop jetty -->
|
<!-- destroy the spring context on shutdown to stop jetty -->
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label>Port</label>
|
<label>Port</label>
|
||||||
<div class="controls">
|
<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>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
|
@ -101,6 +101,8 @@
|
||||||
<script src="js/mqttws31.js"></script>
|
<script src="js/mqttws31.js"></script>
|
||||||
<script>//<![CDATA[
|
<script>//<![CDATA[
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
|
$("#connect_clientId").val("example-"+(Math.floor(Math.random() * 100000)));
|
||||||
if( !window.WebSocket) {
|
if( !window.WebSocket) {
|
||||||
$("#connect").html("\
|
$("#connect").html("\
|
||||||
<h1>Get a new Web Browser!</h1>\
|
<h1>Get a new Web Browser!</h1>\
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label>WebSocket URL</label>
|
<label>WebSocket URL</label>
|
||||||
<div class="controls">
|
<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>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
|
|
Loading…
Reference in New Issue