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&amp;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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -