Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
57aae4ad
Commit
57aae4ad
authored
Mar 15, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mention `send` API command and fix formatting.
parent
49d58d32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
docs/source/development.rst
docs/source/development.rst
+22
-5
No files found.
docs/source/development.rst
View file @
57aae4ad
...
...
@@ -202,6 +202,23 @@ Example:
roster_groups: true
});
send
----
Allows you to send XML stanzas.
For example, to send a message stanza:
.. code-block:: javascript
var msg = converse.env.$msg({
from: 'juliet@example.com/balcony',
to:'romeo@example.net',
type:'chat'
});
converse.send(msg);
The "archive" grouping
----------------------
...
...
@@ -229,7 +246,6 @@ It accepts the following optional parameters:
Examples
^^^^^^^^
**Requesting all archived messages**
The simplest query that can be made is to simply not pass in any parameters.
...
...
@@ -250,6 +266,7 @@ the returned messages.
}
converse.archive.query(callback, errback))
**Waiting until server support has been determined**
The query method will only work if converse.js has been able to determine that
...
...
@@ -666,7 +683,7 @@ Returns a token, either the RID or SID token depending on what's asked for.
Example:
.. code-block:: javascript
.. code-block:: javascript
converse.tokens.get('rid')
...
...
@@ -691,7 +708,7 @@ grouping:
For example:
.. code-block:: javascript
.. code-block:: javascript
converse.listen.on('message', function (event, messageXML) { ... });
...
...
@@ -707,7 +724,7 @@ grouping:
For example:
.. code-block:: javascript
.. code-block:: javascript
converse.listen.once('message', function (event, messageXML) { ... });
...
...
@@ -722,7 +739,7 @@ grouping:
For example:
.. code-block:: javascript
.. code-block:: javascript
converse.listen.not('message', function (event, messageXML) { ... });
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment