updated events

This commit is contained in:
CHIEFSOFT\ameye
2024-12-21 10:14:33 -05:00
parent 1f2d886553
commit d77f15dce7
2 changed files with 15 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
WRENCHJOB_PORT=3000
WRENCHJOB_POSTGRE_URL='postgresql://merms_panel:merms_panel@10.20.30.60:5432/merms_panel'
WRENCHJOB_KAFKA_BROKER01='10.10.10.120:9092'
SOCKET_URL='https://dev-socket.mermsemr.com:5005'
SOCKET_PORT=5005
TEST=111
+9
View File
@@ -36,6 +36,15 @@ app.get('/broadcast/general', (req, res) => {
res.send('hello world')
})
app.get('/broadcast/selected', (req, res) => {
const room = 'merms_selected_events';
const message_action = 'refresh_selected_actions';
socket.emit("join_room", room);
socket.emit("send_message", { message_action , room });
res.send('hello world')
})
const routes = require('./api/routes');
routes(app);