Skip to content
Jerry Hu edited this page Jul 26, 2024 · 1 revision
  • Intercept the "Schedule" action
import * as Callbridge from '@iotum/callbridge-js';
...
const widget = new Callbridge.Dashboard({
  domain,
  sso: {
    token,
    hostId,
  },
  container,
}, Callbridge.Service.Meet, {
  scheduleAction: Callbridge.ScheduleAction.intercept,
});
...
widget.on('dashboard.NAVIGATE_TO_SCHEDULE', ({ id, options })=> {
  console.log(`Navigate to schedule with id ${id} and options ${options}`);
  widget.load(Callbridge.Service.Meet, { pathname: '/schedule', id, ...options });
});

Clone this wiki locally