Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Web Chat API . Cloud Chat. Ready Chat . Facebook like messenger. Smileys, Stickers , Voice notes, Share pictures . Presence management . Audio and Video calls. Made by MQTT-CHAT.

Notifications You must be signed in to change notification settings

medaboub/mqtt-chat-web-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mqtt-chat-web-demo

MQTT-CHAT cloud web is an chat library that provides full chat functionality and can be integrated quickly into any web application.
It allows you to integrate a complete messenger in your application through a few lines of code. Even a beginner in web development can integrate it easily.
MQTT-CHAT cloud web is a complete messaging application similar to those used by facebook, linkedIn etc...
Below some screenshots of the demo application hosted in this github repository.

MQTT CHAT Cloud Web Integration step-by-step guide

Integration

Add MQTT-CHAT script to the header of your page just after JQuery Script.

 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> 
 <script src="https://cluster1.telifoun.com/webapi/en/mqttchat.js?appid=mqttchat-87226030&uf=0"></script>

Docked Layout

In the body of your page, where you want to display MQTT chat, add #mqttchat div to show docked layouts.

 <div id="mqttchat"   
          data-layout="docked"   
          class="mqttchat-lite" 
          data-user-name="user"
          data-user-surname="126"
          data-user-link=""
          data-user-avatar=""          
          data-user-id="126"
          data-user-gender="0"          
     ></div>

Embedded Layout

In the body of your page, where you want to display MQTT chat, add #mqttchat div to show embedded layouts.

<div id="mqttchat"   
          data-layout="embedded"   
          class="mqttchat-lite" 
          data-user-name="user"
          data-user-surname="1"
          data-user-link=""
          data-user-avatar=""          
          data-user-id="21"
          data-user-gender="0"  
          data-width="950"
          data-height="650"        
     ></div>

Events

 /** On error event **/
 telifounJQ(document).on("mqttchat-error",function(e){
 console.log(JSON.stringify(e.mqttchat_data));
 });

/** on page load complete **/
telifounJQ(document).ready(function() {

  /** start chat with user id **/
  telifounJQ(document).on("mqttchat-load-complete",function(e){
    console.log("load complete");
    telifounJQ.mqttchat_cloud.__startChatWithUser(2);
  });

  /** On Incoming Message Event **/
  telifounJQ(document).on("mqttchat-incoming-message",function(e){
    console.log(JSON.stringify(e.mqttchat_data));
  });

  /** On not readed messages count change event **/
  telifounJQ(document).on("mqttchat-not-read-messages-count-update",function(e){
        console.log(e.mqttchat_data);
  });
});

Library features

  • Real-time Text Messaging
  • One-on-one Chat
  • Photos Sharing
  • Capture photos from Webcam
  • Stickers & Emojis
  • Block Users
  • Friends feature for dating or social networks websites
  • Voice Notes
  • Audio & Video Calls using WebRTC
  • Typing Indicators
  • Read Receipts
  • Languages : ar, fr, en
  • Storage Space : up to 5Go
  • Data Retention : up to 30 days
  • WEB Push Notifications
  • Presence & messages webhooks.

    And much more ...

Documentation

For more informations please read the complete MQTT-CHAT web documentation.

About

Web Chat API . Cloud Chat. Ready Chat . Facebook like messenger. Smileys, Stickers , Voice notes, Share pictures . Presence management . Audio and Video calls. Made by MQTT-CHAT.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages