logging - ActiveMQ WebSocket - Connection to STOMP failed : java.io.IOException -
am trying simple program use websocket in active mq 5.11.1
websocket enabled in active mq below
<transportconnector name="ws" uri="ws://0.0.0.0:61614?maximumconnections=1000&wireformat.maxframesize=104857600"/>
this client code
var websocket = require('ws'); var ws = new websocket('ws://127.0.0.1:61614'); ws.on('open', function open() { ws.send('something'); }); ws.on('message', function(data, flags) { console.log(data); });
when run node app, above warning , message not reaching client
warn | transport connection to: stompsocket_431405783 failed: java.io.ioexcepti on
some light on this??
it looks trying connect , send old thing on activemq, @ least in examples you've given. of course never work need communicate using correct protocol (currently stomp , mqtt supported).
there several implementations out there client side communication inside node stomp based messaging. 1 such library stomp.js.
Comments
Post a Comment