Events
  • 06 Jul 2020
  • 1 読む分
  • PDF

Events

  • PDF

The content is currently unavailable in Ja - 日本語. You are viewing the default English version.
記事の要約

Session Events

ScreenMeet Cobrowse has browser events that it emits when starting or stopping a Cobrowse session. These can be used by host websites to keep track of the session, or log analytics data, or enable or disable relevant user interface elements, or any other use which the developers can use it.  These event triggers on each window, iframe, and page load which participates in the Cobrowse session. It is recommended though not strictly necessary to make handling these events idempotent as they will trigger at multiple times per session. They do include their session id on `event.detail.id` so that you may correlate the events. 

StartCobrowseEvent

window.addEventListener("StartCobrowseEvent", function(event) {
   console.log("ScreenMeet Cobrowse session has started. ID: ", event.detail.id)
})

StopCobrowseEvent

window.addEventListener("StopCobrowseEvent", function(event) {
   console.log("ScreenMeet Cobrowse session has end. ID: ", event.detail.id)
})

この記事は役に立ちましたか?