updated events
This commit is contained in:
@@ -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
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user