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
603087c3
Commit
603087c3
authored
Dec 16, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refined events emitting docs.
parent
cdc350f5
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
18 deletions
+44
-18
docs/doctrees/index.doctree
docs/doctrees/index.doctree
+0
-0
docs/html/_sources/index.txt
docs/html/_sources/index.txt
+18
-5
docs/html/index.html
docs/html/index.html
+18
-5
docs/html/searchindex.js
docs/html/searchindex.js
+1
-1
docs/source/index.rst
docs/source/index.rst
+7
-7
No files found.
docs/doctrees/index.doctree
View file @
603087c3
No preview for this file type
docs/html/_sources/index.txt
View file @
603087c3
...
...
@@ -562,7 +562,7 @@ Event Methods
For example::
converse.on('onMessage', function (message) { ... });
converse.on('onMessage', function (message
XML
) { ... });
* **once(eventName, callback)**:
...
...
@@ -576,7 +576,7 @@ Event Methods
For example::
converse.once('onMessage', function (message) { ... });
converse.once('onMessage', function (message
XML
) { ... });
* **off(eventName, callback)**
...
...
@@ -593,15 +593,28 @@ Event Types
Here are the different events that are emitted:
* **onInitialized**
``converse.on('onInitialized', function () { ... });``
Triggered once converse.js has been initialized.
* **onReady**
Triggered after a connection has been established and converse.js has
got all its ducks in a row.
``converse.on('onReady', function () { ... });``
* **onMessage**
``converse.on('onMessage', function (message) { ... });``
``converse.on('onMessage', function (message
XML
) { ... });``
Triggered when a message is received.
* **onMessageSend**
``converse.on('onMessageSend', function (message) { ... });``
``converse.on('onMessageSend', function (message
Text
) { ... });``
Triggered when a message will be sent out.
...
...
@@ -649,7 +662,7 @@ Here are the different events that are emitted:
* **onBuddyStatusMessageChanged**
``converse.on('onBuddyStatusMessageChanged', function (buddy, message) { ... });``
``converse.on('onBuddyStatusMessageChanged', function (buddy, message
Text
) { ... });``
Triggered when a chat buddy's custom status message has changed.
...
...
docs/html/index.html
View file @
603087c3
...
...
@@ -549,7 +549,7 @@ called.</p>
<li><tt
class=
"docutils literal"
><span
class=
"pre"
>
callback
</span></tt>
is the callback method to be called when the event is emitted.
</li>
</ul>
<p>
For example:
</p>
<div
class=
"highlight-python"
><pre>
converse.on('onMessage', function (message) { ... });
</pre>
<div
class=
"highlight-python"
><pre>
converse.on('onMessage', function (message
XML
) { ... });
</pre>
</div>
</div></blockquote>
</li>
...
...
@@ -563,7 +563,7 @@ exactly once.</p>
<li><tt
class=
"docutils literal"
><span
class=
"pre"
>
callback
</span></tt>
is the callback method to be called when the event is emitted.
</li>
</ul>
<p>
For example:
</p>
<div
class=
"highlight-python"
><pre>
converse.once('onMessage', function (message) { ... });
</pre>
<div
class=
"highlight-python"
><pre>
converse.once('onMessage', function (message
XML
) { ... });
</pre>
</div>
</div></blockquote>
</li>
...
...
@@ -583,15 +583,28 @@ exactly once.</p>
<h2><a
class=
"toc-backref"
href=
"#id28"
>
Event Types
</a><a
class=
"headerlink"
href=
"#event-types"
title=
"Permalink to this headline"
>
¶
</a></h2>
<p>
Here are the different events that are emitted:
</p>
<ul>
<li><p
class=
"first"
><strong>
onInitialized
</strong></p>
<blockquote>
<div><p><tt
class=
"docutils literal"
><span
class=
"pre"
>
converse.on('onInitialized',
</span>
<span
class=
"pre"
>
function
</span>
<span
class=
"pre"
>
()
</span>
<span
class=
"pre"
>
{
</span>
<span
class=
"pre"
>
...
</span>
<span
class=
"pre"
>
});
</span></tt></p>
<p>
Triggered once converse.js has been initialized.
</p>
</div></blockquote>
</li>
<li><p
class=
"first"
><strong>
onReady
</strong></p>
<blockquote>
<div><p>
Triggered after a connection has been established and converse.js has
got all its ducks in a row.
</p>
<p><tt
class=
"docutils literal"
><span
class=
"pre"
>
converse.on('onReady',
</span>
<span
class=
"pre"
>
function
</span>
<span
class=
"pre"
>
()
</span>
<span
class=
"pre"
>
{
</span>
<span
class=
"pre"
>
...
</span>
<span
class=
"pre"
>
});
</span></tt></p>
</div></blockquote>
</li>
<li><p
class=
"first"
><strong>
onMessage
</strong></p>
<blockquote>
<div><p><tt
class=
"docutils literal"
><span
class=
"pre"
>
converse.on('onMessage',
</span>
<span
class=
"pre"
>
function
</span>
<span
class=
"pre"
>
(message)
</span>
<span
class=
"pre"
>
{
</span>
<span
class=
"pre"
>
...
</span>
<span
class=
"pre"
>
});
</span></tt></p>
<div><p><tt
class=
"docutils literal"
><span
class=
"pre"
>
converse.on('onMessage',
</span>
<span
class=
"pre"
>
function
</span>
<span
class=
"pre"
>
(message
XML
)
</span>
<span
class=
"pre"
>
{
</span>
<span
class=
"pre"
>
...
</span>
<span
class=
"pre"
>
});
</span></tt></p>
<p>
Triggered when a message is received.
</p>
</div></blockquote>
</li>
<li><p
class=
"first"
><strong>
onMessageSend
</strong></p>
<blockquote>
<div><p><tt
class=
"docutils literal"
><span
class=
"pre"
>
converse.on('onMessageSend',
</span>
<span
class=
"pre"
>
function
</span>
<span
class=
"pre"
>
(message)
</span>
<span
class=
"pre"
>
{
</span>
<span
class=
"pre"
>
...
</span>
<span
class=
"pre"
>
});
</span></tt></p>
<div><p><tt
class=
"docutils literal"
><span
class=
"pre"
>
converse.on('onMessageSend',
</span>
<span
class=
"pre"
>
function
</span>
<span
class=
"pre"
>
(message
Text
)
</span>
<span
class=
"pre"
>
{
</span>
<span
class=
"pre"
>
...
</span>
<span
class=
"pre"
>
});
</span></tt></p>
<p>
Triggered when a message will be sent out.
</p>
</div></blockquote>
</li>
...
...
@@ -639,7 +652,7 @@ exactly once.</p>
</li>
<li><p
class=
"first"
><strong>
onBuddyStatusMessageChanged
</strong></p>
<blockquote>
<div><p><tt
class=
"docutils literal"
><span
class=
"pre"
>
converse.on('onBuddyStatusMessageChanged',
</span>
<span
class=
"pre"
>
function
</span>
<span
class=
"pre"
>
(buddy,
</span>
<span
class=
"pre"
>
message)
</span>
<span
class=
"pre"
>
{
</span>
<span
class=
"pre"
>
...
</span>
<span
class=
"pre"
>
});
</span></tt></p>
<div><p><tt
class=
"docutils literal"
><span
class=
"pre"
>
converse.on('onBuddyStatusMessageChanged',
</span>
<span
class=
"pre"
>
function
</span>
<span
class=
"pre"
>
(buddy,
</span>
<span
class=
"pre"
>
message
Text
)
</span>
<span
class=
"pre"
>
{
</span>
<span
class=
"pre"
>
...
</span>
<span
class=
"pre"
>
});
</span></tt></p>
<p>
Triggered when a chat buddy
’
s custom status message has changed.
</p>
</div></blockquote>
</li>
...
...
docs/html/searchindex.js
View file @
603087c3
This diff is collapsed.
Click to expand it.
docs/source/index.rst
View file @
603087c3
...
...
@@ -562,7 +562,7 @@ Event Methods
For example::
converse.on('onMessage', function (message) { ... });
converse.on('onMessage', function (message
XML
) { ... });
* **once(eventName, callback)**:
...
...
@@ -576,7 +576,7 @@ Event Methods
For example::
converse.once('onMessage', function (message) { ... });
converse.once('onMessage', function (message
XML
) { ... });
* **off(eventName, callback)**
...
...
@@ -595,7 +595,7 @@ Here are the different events that are emitted:
* **onInitialized**
``converse.on('on
Message
', function () { ... });``
``converse.on('on
Initialized
', function () { ... });``
Triggered once converse.js has been initialized.
...
...
@@ -604,17 +604,17 @@ Here are the different events that are emitted:
Triggered after a connection has been established and converse.js has
got all its ducks in a row.
``converse.on('onReady', function (
message
) { ... });``
``converse.on('onReady', function () { ... });``
* **onMessage**
``converse.on('onMessage', function (message) { ... });``
``converse.on('onMessage', function (message
XML
) { ... });``
Triggered when a message is received.
* **onMessageSend**
``converse.on('onMessageSend', function (message) { ... });``
``converse.on('onMessageSend', function (message
Text
) { ... });``
Triggered when a message will be sent out.
...
...
@@ -662,7 +662,7 @@ Here are the different events that are emitted:
* **onBuddyStatusMessageChanged**
``converse.on('onBuddyStatusMessageChanged', function (buddy, message) { ... });``
``converse.on('onBuddyStatusMessageChanged', function (buddy, message
Text
) { ... });``
Triggered when a chat buddy's custom status message has changed.
...
...
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