Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to import this plugin and use in Angular. #11

Open
Vida-Subhash opened this issue Jul 12, 2022 · 1 comment
Open

How to import this plugin and use in Angular. #11

Vida-Subhash opened this issue Jul 12, 2022 · 1 comment

Comments

@Vida-Subhash
Copy link

Hello I'm getting the error. I have used this function on Strophe connection object.
here it's connection object this.connection = new Strophe.Connection(this.BOSH_SERVICE, { keepalive: true, });
here is the example -
this.connection.mam.query("[email protected]", { "with": "[email protected]", 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"); } });
getting below error.
image

@radovix
Copy link

radovix commented Jul 21, 2022

@Vida-Subhash try adding import 'strophejs-plugin-mam'; to the list of the imports where you are importing Strophe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants