<commit_before># Strophe.js Plugins

[Strophe.js](http://code.stanziq.com/strophe) 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 .

## How to use

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(converse.bosh_service_url);
    connection.roster.get(function () {});
``

## Available Plugins

### XMPP Extensions

- [Data Forms](/dataforms/)
  ([XEP 0004](http://xmpp.org/extensions/xep-0004.html))

- [Jabber-RPC](/rpc/)
  ([XEP 0009](http://xmpp.org/extensions/xep-0009.html))

- [Service Discovery](/disco/)
  ([XEP 0030](http://xmpp.org/extensions/xep-0030.html))

- [Multi-User Chat](/muc/)
  ([XEP 0045](http://xmpp.org/extensions/xep-0045.html))

- [Private XML Storage](/private/)
  ([XEP 0049](http://xmpp.org/extensions/xep-0049.html))

- [Ad-Hoc Commands](/cmds/)
  ([XEP 0050](http://xmpp.org/extensions/xep-0050.html))

- [vcard-temp](/vcard/)
  ([XEP 0054](http://xmpp.org/extensions/xep-0054.html))

- [Result Set Management](/rsm/)
  ([XEP 0059](http://xmpp.org/extensions/xep-0059.html))

- [Publish-Subscribe](/pubsub/)
  ([XEP 0060](http://xmpp.org/extensions/xep-0060.html))<commit_msg>Formatting and remove ref to converse<commit_after># Strophe.js Plugins

[Strophe.js](http://code.stanziq.com/strophe) 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 .

## How to use

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 () {});```

## Available Plugins

### XMPP Extensions

- [Data Forms](/dataforms/)
  ([XEP 0004](http://xmpp.org/extensions/xep-0004.html))

- [Jabber-RPC](/rpc/)
  ([XEP 0009](http://xmpp.org/extensions/xep-0009.html))

- [Service Discovery](/disco/)
  ([XEP 0030](http://xmpp.org/extensions/xep-0030.html))

- [Multi-User Chat](/muc/)
  ([XEP 0045](http://xmpp.org/extensions/xep-0045.html))

- [Private XML Storage](/private/)
  ([XEP 0049](http://xmpp.org/extensions/xep-0049.html))

- [Ad-Hoc Commands](/cmds/)
  ([XEP 0050](http://xmpp.org/extensions/xep-0050.html))

- [vcard-temp](/vcard/)
  ([XEP 0054](http://xmpp.org/extensions/xep-0054.html))

- [Result Set Management](/rsm/)
  ([XEP 0059](http://xmpp.org/extensions/xep-0059.html))

- [Publish-Subscribe](/pubsub/)
  ([XEP 0060](http://xmpp.org/extensions/xep-0060.html))
{'fraction_non_alphanumeric': 0.16757101819342482, 'fraction_numerical': 0.04596233641876796, 'mean_word_length': 4.232053422370618, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3166496', 'n_tokens_mistral': 1271, 'n_tokens_neox': 1111, 'n_words': 244}