How to disconnect all connection on a session?

淺唱寂寞╮ 提交于 2021-02-20 04:25:05

问题


I wanna to disconnect all connection on a session from server but i just find how to dissconnect a connection by using forceDisconnect. Besides, I wanna destroy session when all connection disconnected and destroy token when a connection disconnected


回答1:


Opentok SDET here,

You can use forceDisconnect, if you want to trigger the disconnection from a single point, or use disconnect and capture StreamDestroyed events in remote peers, to act accordingly. Regarding sessions, you don't need to destroy sessions, just don't reuse them, and create a new one. Tokens expire, so you don't need to worry about them, either.

I hope this helps.



来源:https://stackoverflow.com/questions/56542323/how-to-disconnect-all-connection-on-a-session

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!