Strophe.js community plugins
npm install strophejs-pluginsStrophe.js is a JavaScript library for
speaking XMPP in web applications. It supports extension via a plugin system.
This is a collection of 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 () {});
- Data Forms
(XEP 0004)
- Jabber-RPC
(XEP 0009)
- Service Discovery
(XEP 0030)
- Private XML Storage
(XEP 0049)
- vcard-temp
(XEP 0054)
- Result Set Management
(XEP 0059)
- Publish-Subscribe
(XEP 0060)
- Jabber Object Access Protocol
(XEP 0075)
- In-Band Registration
(XEP 0077)
- Chat State Notifications
(XEP 0085)
- Entity Capabilities
(XEP 0115)
- Message Archiving
(XEP 0136)
- Personal Eventing Protocol
(XEP 0163)
- Message Delivery Receipts
(XEP 0184)
- Roster Versioning
(XEP 0237)
- Message Archive Management
(XEP 0313)
- In-Band Bytestreams
(XEP 0047)
- Stream Management
(XEP 0198)
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
- epic
- iexdomain - Support for IE
XDomainRequest
If you would like to make your plugin available here, simply fork this
repository, commit your plugin and issue a pull request.
The same instructions also work for any changes you wish to make to existing
plugins.
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.