npm -i stringon-webwing-hub
const hub = require('stringon-webwing-hub');
// In webwing page:
const iframe = document.getElementById('iframe_mall');
hub.agent.attach(iframe, {});
// In iframe page
hub.agent.attach(null, {
onQuery,
onUpdate,
onUpdatebatch,
onNewlocation,
});