{"id":4866,"date":"2021-12-10T18:15:45","date_gmt":"2021-12-10T10:15:45","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4866"},"modified":"2022-04-08T19:04:54","modified_gmt":"2022-04-08T11:04:54","slug":"disconnect-user","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/cordova-toolkit\/disconnect-user\/","title":{"rendered":"Disconnect User: Cordova\/Ionic SDK &#8211; Video API"},"content":{"rendered":"\n<p>Moderator may wish to disconnect or force-drop one or more participant(s) from the Session by using&nbsp;<code>window.EnxRtc.dropUser()<\/code>&nbsp;method. <\/p>\n\n\n\n<p><strong>Method:<\/strong>&nbsp;<strong><code>dropUser( clientID )<\/code><\/strong><\/p>\n\n\n\n<p><strong>Parameters:<\/strong><\/p>\n\n\n\n<ul><li><code>@param {Array} clientID -<\/code> An array of Client Ids to be disconnected.<\/li><\/ul>\n\n\n\n<p><strong>Event Listeners:<\/strong><\/p>\n\n\n\n<ul><li><code>onAckDropUser - <\/code>To notify the Moderator that user(s) has been disconnected<\/li><li><code>onRoomDisConnected<\/code> &#8211; To notify the participant that he has been disconnected from the room along with the reason<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ To disconnect the user from room\nVar array = [c1,c2];\nwindow.EnxRtc.dropUser(array);\n\n\/\/ Add Event Listeners\n\/\/ Moderator is acknowledged that user has been dropped.\nwindow.EnxRtc.addEventListner(\"onAckDropUser\", function\nconsole.log(JSON.stringify(data.data));\n});\n(data)\n{\n\n\/\/ Participants are notified that he is disconnected from the room with reason\nwindow.EnxRtc.addEventListner(\"onRoomDisConnected\",\nfunction (data)\n{\nconsole.log(JSON.stringify(data.data));\n});<\/pre>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>\u2190 <a href=\"..\/participant-role-switch\/\"><\/a><a href=\"..\/participant-role-switch\/\">Change Participant\u2019s Role<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-center\"><a href=\"..\/\">Index<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-right\"><a href=\"..\/session-extension-closure\/\">Session Extension &amp; Closure<\/a> \u2192<a href=\"\/developer\/how-to-use\/\"><\/a><\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Moderator may wish to disconnect or force-drop one or more participant(s) from the Session by using&nbsp;window.EnxRtc.dropUser()&nbsp;method. Method:&nbsp;dropUser( clientID ) Parameters: @param {Array} clientID &#8211; An array of Client Ids to be disconnected. Event Listeners: onAckDropUser &#8211; To notify the Moderator that user(s) has been disconnected onRoomDisConnected &#8211; To notify the participant that he has been disconnected from the room along with the reason \/\/ To disconnect the user from room&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3719,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ub_ctt_via":""},"featured_image_src":null,"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"featured":false,"featured-large":false},"uagb_author_info":{"display_name":"vcxdevwpadmin","author_link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/author\/vcxdevwpadmin\/"},"uagb_comment_info":0,"uagb_excerpt":"Moderator may wish to disconnect or force-drop one or more participant(s) from the Session by using&nbsp;window.EnxRtc.dropUser()&nbsp;method. Method:&nbsp;dropUser( clientID ) Parameters: @param {Array} clientID - An array of Client Ids to be disconnected. Event Listeners: onAckDropUser - To notify the Moderator that user(s) has been disconnected onRoomDisConnected &#8211; To notify the participant that he has been&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4866"}],"collection":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/comments?post=4866"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4866\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3719"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}