0.0.1 • Published 3 years ago

strophejs-plugin-mam-vue v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

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");
  }
	});