-
Notifications
You must be signed in to change notification settings - Fork 95
Closed
Description
Hi! I have the infinite reconnection loop. I've read the documentation. I've tried to do everything according to it but I still have this reconnection loop
const express = require('express');
const cors = require('cors');
const bodyParser = require('body-parser');
const fs = require('fs');
const path = require('path');
const app = express();
Object.assign(global, { WebSocket: require('websocket').w3cwebsocket });
var StompJs = require('@stomp/stompjs');
const client = new StompJs.Client({
brokerURL: 'ws://localhost:3001/stream/ws',
debug: function (str) {
console.log(str);
}
});
client.onConnect = function (frame) {
console.log('Connection STOMP from nodejs openned');
};
client.onStompError = function (frame) {
console.log('Broker reported error: ' + frame.headers['message']);
console.log('Additional details: ' + frame.body);
};
client.activate();
app.listen(3001, () => console.log('Mock server listening on port 3001'));
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
