{"id":5011,"date":"2021-12-21T15:58:20","date_gmt":"2021-12-21T07:58:20","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=5011"},"modified":"2022-04-08T19:22:49","modified_gmt":"2022-04-08T11:22:49","slug":"disconnect-user","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/react-native-toolkit\/disconnect-user\/","title":{"rendered":"Disconnect User: React Native SDK \u2013 Video API"},"content":{"rendered":"\n<p>The <code>Enx.dropUser()<\/code>&nbsp;method allows the Moderator to disconnect \/ force-drop one or more participant(s) from the Session.<\/p>\n\n\n\n<p><strong>Class:<\/strong> Enx<\/p>\n\n\n\n<p><strong>Method:<\/strong>&nbsp;<strong><code>Enx.dropUser(clientIds)<\/code><\/strong><\/p>\n\n\n\n<p><strong>Parameter:<\/strong><\/p>\n\n\n\n<ul><li><code>clientIds<\/code> &#8211; Required. List of Client IDs to be disconnected.<\/li><\/ul>\n\n\n\n<p><strong>Callbacks:<\/strong><\/p>\n\n\n\n<ul><li><code>ackDropUser<\/code> <code>-<\/code>&nbsp;Acknowledgment to the Moderator when the user is disconnected.<\/li><li><code>roomDisconnected<\/code> <code>-<\/code>&nbsp;Notification to the affected user with the reason to be disconnected from the Room. <\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">Enx.dropUser(clientIds)\nackDropUser:event=&gt;{\n     \/\/ Moderator is acknowledged that user has been dropped\n              }\nroomDisconnected:event=&gt;{\n      \/\/ Notification to the affected user with the reason to be disconnected from the Room\n              }<\/pre>\n\n\n\n<p><strong>Error<\/strong> <strong>Codes &amp; Exceptions<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Code<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>5116<\/td><td>Unauthorized Access. When a user with <code>participant<\/code> role invokes <code>dropUser()<\/code> <\/td><\/tr><\/tbody><\/table><\/figure>\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=\"..\/room-entry-restriction\/\">Lock \/ Unlock Room<\/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=\"..\/destroy-session\/\"><\/a><a href=\"..\/destroy-session\/\">Destroy Session<\/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>The Enx.dropUser()&nbsp;method allows the Moderator to disconnect \/ force-drop one or more participant(s) from the Session. Class: Enx Method:&nbsp;Enx.dropUser(clientIds) Parameter: clientIds &#8211; Required. List of Client IDs to be disconnected. Callbacks: ackDropUser &#8211;&nbsp;Acknowledgment to the Moderator when the user is disconnected. roomDisconnected &#8211;&nbsp;Notification to the affected user with the reason to be disconnected from the Room. Enx.dropUser(clientIds) ackDropUser:event=&gt;{ \/\/ Moderator is acknowledged that user has been dropped } roomDisconnected:event=&gt;{ \/\/&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3747,"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":"The Enx.dropUser()&nbsp;method allows the Moderator to disconnect \/ force-drop one or more participant(s) from the Session. Class: Enx Method:&nbsp;Enx.dropUser(clientIds) Parameter: clientIds &#8211; Required. List of Client IDs to be disconnected. Callbacks: ackDropUser -&nbsp;Acknowledgment to the Moderator when the user is disconnected. roomDisconnected -&nbsp;Notification to the affected user with the reason to be disconnected from the&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/5011"}],"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=5011"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/5011\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3747"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=5011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}