Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jmsTemplate.convertAndSend("topic", "Hello World!");
- let mqtt = require('mqtt')
- let options ={
- clientId:"test",
- username:"username",
- useSSL: true,
- password:"password",
- clean:true};
- let client = mqtt.connect(
- 'wss://someUrl.com:61619',
- options);
- client.on('connect', function () {
- client.subscribe('myTopic', function (err) {
- if (!err) {
- console.log("successfully connected to myTopic'");
- }
- })
- });
- client.on('message', function (topic, message) {
- console.log(message.toString());
- });
- S�A S�)�x-opt-jms-destQ�x-opt-jms-msg-typeQ Ss� f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement