You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, using React js and got this error at the beginning. (The options are not right but atleast it could get me a callback error instead of net error.)
const Stomp = require("stomp-client");
const destination = "/queue/someQueueName";
const client = new Stomp("127.0.0.1", 61613, "user", "pass");
export default function StompTest() {
client.connect(
function (sessionId) {
client.subscribe(destination, function (body, headers) {
console.log(
"This is the body of a message on the subscribed queue:",
body
);
});
client.publish(destination, "Oh herrow");
},
function (err) {
console.log(err);
}
);
}
The text was updated successfully, but these errors were encountered:
Hi, using React js and got this error at the beginning. (The options are not right but atleast it could get me a callback error instead of net error.)
The text was updated successfully, but these errors were encountered: