{"id":4653,"date":"2021-12-02T18:14:58","date_gmt":"2021-12-02T10:14:58","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4653"},"modified":"2022-04-11T13:23:21","modified_gmt":"2022-04-11T05:23:21","slug":"chat","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/flutter-toolkit\/chat\/","title":{"rendered":"Chat: Flutter SDK &#8211; Video API"},"content":{"rendered":"\n<p>This is an advance messaging feature between Session participants. You can do following type of messaging in a session among participants:<\/p>\n\n\n\n<ul><li><strong>Public Messaging:&nbsp;<\/strong>To send message to all connected users.<\/li><li><strong>Private Messaging:&nbsp;<\/strong>To send message to a specific user.<\/li><li><strong>Group Messaging:<\/strong>&nbsp;To send message to more than one specified users.<\/li><\/ul>\n\n\n\n<p>Messaging feature neither require the sender to publish his Stream, nor receivers to subscribe.<\/p>\n\n\n\n<p><strong>Method<\/strong>: <code>static Future&lt;void&gt; sendMessage(String message, bool isBroadCast, List&lt;dynamic&gt; recipientIDs)essage(String Message, boolean isBroadcast, array RecipientIDs)<\/code><\/p>\n\n\n\n<p><strong>Parameters<\/strong>: <\/p>\n\n\n\n<ul><li><code>@param Strings message<\/code>\u2013 String type message. <\/li><li><code>@param bool isBroadcast<\/code>\u2013 Boolean. Use&nbsp;<em>true&nbsp;<\/em>for      Public Broadcast, Use&nbsp;<em>false&nbsp;<\/em>for      private messaging to one or more recipients.<\/li><li><code>@param List clientIds&nbsp;<\/code>\u2013 Array of ClientIDs whom you wish to      send private messages.<\/li><\/ul>\n\n\n\n<p><strong>Callback<\/strong>: <\/p>\n\n\n\n<ul><li><code>onAcknowledgeSendData<strong> <\/strong><\/code>\u2013 It notifies when message is successfully sent to another user or group of users<\/li><li><code>onMessageReceived <\/code>\u2013 It notifies at receiver end tat a new message arrived<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">EnxRtc.sendMessage(\u201dmessage\u201d,true,[]); \/\/ Send Message to all\n\nEnxRtc.onAcknowledgeSendData = (Map&lt;dynamic,dynamic&gt; map) {\n\t\/\/ Message has been sent\n};\n\nEnxRtc.onMessageReceived = (Map&lt;dynamic,dynamic&gt; map) {\n\t\/\/ New Message has been received\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=\"..\/get-video-quality\/\"><\/a><a href=\"..\/get-video-quality\/\">Get View Quality Received<\/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=\"..\/file-share\/\"><\/a><a href=\"..\/file-share\/\">File Sharing<\/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>This is an advance messaging feature between Session participants. You can do following type of messaging in a session among participants: Public Messaging:&nbsp;To send message to all connected users. Private Messaging:&nbsp;To send message to a specific user. Group Messaging:&nbsp;To send message to more than one specified users. Messaging feature neither require the sender to publish his Stream, nor receivers to subscribe. Method: static Future&lt;void&gt; sendMessage(String message, bool isBroadCast, List&lt;dynamic&gt; recipientIDs)essage(String&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3755,"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":"This is an advance messaging feature between Session participants. You can do following type of messaging in a session among participants: Public Messaging:&nbsp;To send message to all connected users. Private Messaging:&nbsp;To send message to a specific user. Group Messaging:&nbsp;To send message to more than one specified users. Messaging feature neither require the sender to publish&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4653"}],"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=4653"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4653\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3755"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}