this way..
var widgetData = loadJSON('widget-data.json')
app.on('sessionOpened', function(data, client) {
receive('/EDIT', 'widget_id', JSON.stringify(widgetData))
})
this way..
var widgetData = loadJSON('widget-data.json')
app.on('sessionOpened', function(data, client) {
receive('/EDIT', 'widget_id', JSON.stringify(widgetData))
})
Iâm not sure to get it: youâre basically sending whatâs in widget-data.json
here, if you wanât to only send a subset simply write something like
receive('/EDIT', 'widget_id', JSON.stringify(widgetData.session.tabs[5]....))
Ok, i need to use â/getâ here, i donât want to update the widget, just want to get the values of one widget. Completly overlooked the edit here⌠Thanks!