FS-9683: Pass call recovery status to Verto

Previously, users implementing a Verto workflow where both user login and
placing a new call are automated (eg., visiting a URL, and the videoconference
loads automatically) faced the challenge of not having a reliable way to know
that a page load will result in Verto's call recovery mechanism reconnecting
an existing detached call or not.

This adds a verto.clientReady JSON-RPC message, emitted after all calls are
re-attached, which contains a 'reattached_sessions' array, containing the
sess_id of any reattached session.

Client side, this can be caught in the onMessage handler, under the
$.verto.enum.message.clientReady key.
This commit is contained in:
Chad Phillips
2017-07-06 13:54:08 -07:00
parent 07d4d093b0
commit 34e491ffa1
6 changed files with 30 additions and 1 deletions

View File

@@ -750,6 +750,9 @@ var callbacks = {
}
}
break;
case $.verto.enum.message.clientReady:
// console.error("clientReady", data);
break;
case $.verto.enum.message.info:
if (data.msg) {
data = data.msg;