node-stomp-client
node-stomp-client copied to clipboard
A STOMP client for Node.js
code: var Stomp = require('stomp-client'); var dest2 = '/queue/st5'; var client = new Stomp('127.0.0.1', 61613, 'admin', 'admin'); client.connect(function(sessionId) { console.log(sessionId) client.publish(dest2,JSON.stringify({name:'消灭',age:23})); client.publish(dest2,JSON.stringify({name:'xiaohua',age:3})); client.subscribe(dest2,function(data){ console.log('from queue: '+data) }) client.subscribe(dest2,function(data){ console.log('from queue2:...
Update README and remove; "The client comes in two forms, a standard or secure client. The example below is using the standard client. To use the secure client simply change...
The stomp.publishable boolean property does not exist in the source code (thus is always 'falsey' if referenced in my code) The property is mentioned in the README.md and the npm...
It appears that messages above some certain size break subscription handling. Tried a code snippet along the lines of: ```javascript socketClient.connect(function(){ logger.info("Subscribed"); socketClient.subscribe("/queue/connector", function(body, header){ console.log("Something Happened!") }); }); ```...
Hey guys, I posted my issue there [https://stackoverflow.com/questions/49303927/create-a-singleton-of-stomp-client-and-pass-it-as-parameter](url) If someone got a solution, feel free to answer me please. I simply created a connection by `const client = new Stomp(config)...
is there any way to introduce an indefinite retry into this project? we have a requirement when we'd never really want to stop trying to reconnect; it simply wouldn't make...
ERROR in ./node_modules/stomp-client/lib/client.js Module not found: Error: Can't resolve 'tls' in 'C:\projects\demos\STOMP\node_modules\stomp-client\l ib' @ ./node_modules/stomp-client/lib/client.js 3:10-24 @ ./src/requireComponent.js @ ./src/index.js @ multi (webpack)-dev-server/client?http://localhost:8686 ./src/index.js
This fix allows to send binary data over STOMP. When sending binary data...converting it from buffer to string could mangle it. Some example code below to demonstrate the problem. Note...
ActiveMQ(and in some cases RabbitMQ) will fail if TextMessage has content-length header. When we send frame with string in a body we can omit content-length header automatically. Package tests are...
The topic message (body) is empty ActiveMQ version - 5.11.0 Am using log4j JMS appender and pushing log messages to a topic. And running stomp client in node js app...