Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 881979ee20
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (16 sloc) 0.622 kB

Entity Capabilities

This plugin handles entity capabilities according to XEP-0115.

Requirements

The disco plugin is required.

Usage

  1. Download & Include the script in your client :)
  2. Set the node to the client, e.g.:
_connection = new Strophe.Connection(service);
// change example.com to your client's url.
_connection.caps.node = 'http://example.com';

If you need to send the caps stanza to somewhere, just call _connection.caps.generateCapsAttrs() to get the stanza attributes used to generate the "c"-stanza.

Jump to Line
Something went wrong with that request. Please try again.