Small improvements to quickstart text.
This commit is contained in:
parent
868435173f
commit
952b5098cd
|
@ -22,14 +22,14 @@ tags:
|
||||||
You need to initialize Converse.js with configuration settings according to
|
You need to initialize Converse.js with configuration settings according to
|
||||||
your requirements.
|
your requirements.
|
||||||
|
|
||||||
Please refer to the :ref:`configuration-variables` section further below for info on
|
Please refer to the :ref:`configuration-variables` section for info on all the available configuration settings.
|
||||||
all the available configuration settings.
|
|
||||||
|
|
||||||
To configure Converse.js, put the following inline Javascript code at the
|
To configure and initialize Converse.js, put the following inline Javascript code at the
|
||||||
bottom of your page (after the closing *</body>* element).
|
bottom of your page (after the closing *</body>* element).
|
||||||
|
|
||||||
.. code-block:: javascript
|
.. code-block:: javascript
|
||||||
|
|
||||||
|
<script>
|
||||||
require(['converse'], function (converse) {
|
require(['converse'], function (converse) {
|
||||||
converse.initialize({
|
converse.initialize({
|
||||||
bosh_service_url: 'https://bind.conversejs.org', // Please use this connection manager only for testing purposes
|
bosh_service_url: 'https://bind.conversejs.org', // Please use this connection manager only for testing purposes
|
||||||
|
@ -38,14 +38,15 @@ bottom of your page (after the closing *</body>* element).
|
||||||
roster_groups: true
|
roster_groups: true
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
The `index.html <https://github.com/jcbrand/converse.js/blob/master/index.html>`_ file inside the
|
The `index.html <https://github.com/jcbrand/converse.js/blob/master/index.html>`_ file inside the
|
||||||
Converse.js repository may serve as a nice usable example.
|
Converse.js repository may serve as a nice usable example.
|
||||||
|
|
||||||
These minified files provide the same demo-like functionality as is available
|
These minified `.js` and `.css` files provide the same demo-like functionality as is available
|
||||||
on the `conversejs.org <http://conversejs.org>`_ website. Useful for testing or demoing.
|
on the `conversejs.org <http://conversejs.org>`_ website. Useful for testing or demoing.
|
||||||
|
|
||||||
You'll most likely want to implement some kind of single persistent session solution for
|
You'll most likely want to implement some kind of persistent single-session solution for
|
||||||
your website, where users authenticate once in your website and then stay
|
your website, where users authenticate once in your website and then stay
|
||||||
logged in to their XMPP session upon the next page reload.
|
logged in to their XMPP session upon the next page reload.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user