Please Note: This repository used to contain all the plugins. They have since been split out into their own repositories so that they can be managed and released independently. For more info, see ticket #123
Strophe.js is a JavaScript library for speaking XMPP in web applications. It supports extension via a plugin system.
Below is listed a collection Strophe.js plugins created and maintained by the community. The homepage for this collection is https://github.com/strophe/strophejs-plugins
Strophe plugins extend the Strophe.Connection object by calling
Strophe.addConnectionPlugin
.
This enables us to then access the plugin as an attribute on the connection object.
For example, here the "roster" plugin is used:
var connection = new Strophe.Connection(bosh_service_url);
connection.roster.get(function () {});
extensions used in Internet of Things (IoT)
-
Internet of Things - Sensor Data - Reading values from devices (XEP 0323)
-
Internet of Things - Control - Writing values to devices (XEP 0325)
-
Serverdate - Syncs a local clock to the servers
-
iexdomain - Support for IE XDomainRequest
If you would like to make your own plugin available here, please create a ticket in the issue tracker and someone will create a new repository for you.
The book Professional XMPP Programming with JavaScript and jQuery is also available, which covers Strophe in detail in the context of web applications. You can find more information and two free chapters ( including one specifically on writing Strophe.js plugins ) at the homepage of the book.