provison - event
This commit is contained in:
@@ -54,10 +54,14 @@ app.get('/broadcast/provisioning', (req, res) => {
|
|||||||
logger.info('***** Server PROVISION STEPS MESSAGE ********* ');
|
logger.info('***** Server PROVISION STEPS MESSAGE ********* ');
|
||||||
logger.info(req.query.product_uid);
|
logger.info(req.query.product_uid);
|
||||||
const room = req.query.product_uid;
|
const room = req.query.product_uid;
|
||||||
//const room = 'merms_provision_events';
|
|
||||||
const message_action = 'refresh_provision_actions';
|
const message_action = 'refresh_provision_actions';
|
||||||
socket.emit("join_room", room);
|
socket.emit("join_room", room);
|
||||||
socket.emit("send_message", {message_action, room});
|
socket.emit("send_message", {message_action, room});
|
||||||
|
|
||||||
|
const provRoom = "PROVISION_" + req.query.product_uid
|
||||||
|
socket.emit("join_room", provRoom);
|
||||||
|
socket.emit("send_message", {message_action, room});
|
||||||
|
|
||||||
res.send('hello world')
|
res.send('hello world')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user