strophejs-plugin-mam-vue

Library chat strophe plugin mam dengan ejjabber

Usage no npm install needed!

<script type="module">
  import strophejsPluginMamVue from 'https://cdn.skypack.dev/strophejs-plugin-mam-vue';
</script>

README

strophe.mam.js

Sumber Source : Strophe.RSM

Library Strophe Vuejs : Install terlebih dahulu

1: vue-strophe.js (sumber https://github.com/Zengxm/strophejs)

Install Pertama

npm install vue-strophe.js

Install Library strophe mam

npm install strophejs-plugin-mam

Usage

connection.mam.query("you@example.com", {
  "with": "juliet@capulet.com",
  onMessage: function(message) {
            console.log("Message from ", $(message).find("forwarded message").attr("from"),
                ": ", $(message).find("forwarded message body").text());
            return true;
  },
  onComplete: function(response) {
            console.log("Got all the messages");
  }
    });