We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef3fab0 commit 4ee2022Copy full SHA for 4ee2022
1 file changed
README.markdown
@@ -7,6 +7,21 @@ This is a collection of Strophe.js plugins created and maintained by the
7
community. The homepage for this collection is
8
https://github.com/strophe/strophejs-plugins .
9
10
+## How to use
11
+
12
+Strophe plugins extend the Strophe.Connection object by calling
13
+``Strophe.addConnectionPlugin``.
14
15
+This enables us to then access the plugin as an attribute on the connection
16
+object.
17
18
+For example, here the "roster" plugin is used:
19
20
+``
21
+ var connection = new Strophe.Connection(converse.bosh_service_url);
22
+ connection.roster.get(function () {});
23
24
25
## Available Plugins
26
27
### XMPP Extensions
0 commit comments