[英]How to listen session:success event in nexmo client js?
I follow tutorial here: https://developer.nexmo.com/client-sdk/tutorials/app-to-phone/client-sdk/app-to-phone/main-screen/javascript我在这里遵循教程: https : //developer.nexmo.com/client-sdk/tutorials/app-to-phone/client-sdk/app-to-phone/main-screen/javascript
listen session:success
event with bellow script not working.侦听
session:success
使用波纹管脚本的session:success
事件不起作用。
const status = $('.input');
app.on('session:success', () => {
status.val('Ready to call.');
});
Is there any other event i can listen?我还有其他活动可以听吗?
It seems i don't need to listen nexmo app event.看来我不需要听 nexmo 应用程序事件。
Just check it with if condition.只需使用 if 条件检查它。
if (app.session.sessionReady) {
callStatus.val("Ready for call.");
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.