manual.rst 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. .. raw:: html
  2. <div id="banner"><a href="https://github.com/jcbrand/converse.js/blob/master/docs/source/manual.rst">Edit me on GitHub</a></div>
  3. ===========================
  4. The Converse.js User Manual
  5. ===========================
  6. .. |br| raw:: html
  7. <br />
  8. .. figure:: images/homepage.jpg
  9. :align: right
  10. :alt: The converse.js website
  11. The converse.js website
  12. **Welcome to the converse.js user manual**. This manual is very much still a work
  13. in progress and is far from complete. Please bear in mind that it's the work of volunteers.
  14. If you have requests or suggestions on how the manual can be improved or
  15. expanded, then please `contact me <https://opkode.com/contact.html>`_
  16. or create a new ticket on `Github <https://github.com/jcbrand/converse.js/issues>`_.
  17. Although converse.js can be integrated into any website, for this user manual
  18. we'll refer to the canonical version at https://conversejs.org.
  19. This documentation also integrates the converse.js chat client, so you can try
  20. out some of the steps right on this page! Just click the **Toggle chat** button
  21. at the bottom right of the page to open the so-called *control box* of the
  22. converse.js chat client.
  23. Registering a new chat account
  24. ==============================
  25. .. figure:: images/register-panel.jpg
  26. :align: left
  27. :alt: The registration panel of the converse.js control box.
  28. The registration panel of converse.js
  29. With converse.js you can register a new XMPP account on any publically available XMPP provider.
  30. To do so, click the **Register** tab on the chat client.
  31. You will then see the *registration panel* as shown in the picture below.
  32. Choosing your provider
  33. ----------------------
  34. Converse.js uses a chat protocol called XMPP (also known as Jabber) which allows "federation".
  35. This means that it's similar to email, in the sense that people signed in at
  36. different XMPP chat providers can still chat with one another.
  37. For example, if you have a Yahoo! email account, you can send and receive emails from
  38. a friend with a Google email account. In the same way, if you have a chat
  39. account from **Conversejs.org**, you can send and receive chat messages with a
  40. friend who has an account at `Jappix.com <https://jappix.com>`_.
  41. There are many free providers online which allow you to register a new account.
  42. You can see a list of some of them at `xmpp.net <https://xmpp.net/directory.php>`_.
  43. The `xmpp.net <https://xmpp.net/directory.php>`_ website provides a security grading
  44. for the XMPP servers of the providers, which is very useful. They are however sometimes
  45. slow to add new servers to the list.
  46. A larger list of XMPP providers is also available at `list.jabber.net <https://list.jabber.at/>`_.
  47. You can find the domain name for a server under the *Domain* column at
  48. `xmpp.net <https://xmpp.net/directory.php>`_. or the *Server* column at
  49. `list.jabber.net <https://list.jabber.at/>`_.
  50. Once you know which XMPP provider you'd like to use, you can type its domain
  51. name and click the **Fetch registration form** button.
  52. |br|
  53. .. figure:: images/register-form.jpg
  54. :align: left
  55. :alt: The registration form for an XMPP account at conversejs.org
  56. The registration form
  57. Filling out the registration form
  58. ---------------------------------
  59. After you've clicked **Fetch registration form**, the chat client will contact
  60. the chat provider, ask for its registration form and then present it to you.
  61. Different chat providers have different registration forms, but they're all
  62. relatively similar.
  63. Check the security score
  64. ~~~~~~~~~~~~~~~~~~~~~~~~
  65. At the top of the form you'll see a colored bar containing the text **xmpp.net score**.
  66. This shows the security score for this server as determined by `xmpp.net <https://xmpp.net>`_
  67. where you can test out a server for yourself. You should generally avoid providers with
  68. a poor security score (colored in red).
  69. Choosing a username
  70. ~~~~~~~~~~~~~~~~~~~
  71. As you can see in the registration form, the **username** consists of two
  72. parts separated with an **@** sign, similar to an email address.
  73. The first part is your unique *handle* which you need to choose. The second part
  74. is the domain name of the chat provider, the one which you chose in the previous step
  75. when you fetched the registration form.
  76. When you want to give someone your XMPP chat username, or when you want to add
  77. someone else as a contact, you need to specify it in full, like you would an email address.
  78. Once you've chosen your user name and password, click **Register**. If
  79. Successful, you'll be automatically logged in to your new account.
  80. |br|
  81. .. figure:: images/add-contact.png
  82. :align: left
  83. :alt: Adding a contact in converse.js
  84. The form for adding a new contact
  85. Adding a contact
  86. ================
  87. In order to start chatting with someone, you first need to add them as a contact.
  88. To do this, click the **Add a contact** link in the **Contacts** tab. This will
  89. slide open a dropdown in which you can type the username of the person you'd
  90. like to add.
  91. Remember, an XMPP username (also called a JID or Jabber ID) is similar to an
  92. email address, in that you have both the user's *handle* and the *domain name*
  93. of the provider, separated with an **@** sign.
  94. Once you've typed the username and clicked submit, your request will be sent to
  95. this person. If they are online, they will immediately be notified of your
  96. request, otherwise they'll see it next time they come online.
  97. Technically, when you add someone as a contact, you're doing two things. Firstly,
  98. you are adding the contact to your *roster* (think of it as an address book) and secondly
  99. you are asking to be notified whenever that person comes online.
  100. .. figure:: images/pending-contact.jpg
  101. :align: left
  102. :alt: A pending contact
  103. A pending contact
  104. A pending contact
  105. -----------------
  106. The person you are adding as a contact has the option to either accept or decline your request.
  107. Until that decision has been made, they will appear in your roster as a
  108. so-called *pending* contact. In other words, their final status is pending on whether
  109. they accept or decline your request.
  110. .. figure:: images/ungrouped-contact.png
  111. :align: right
  112. :alt: A normal, ungrouped contact
  113. A normal contact
  114. A normal contact
  115. ----------------
  116. If the person accepts your contact request, they will get a *chat status
  117. indicator* in your roster and will also become clickable. Clicking on the name
  118. of the user will open a chatbox in which you can then start chatting with that
  119. user.
  120. .. figure:: images/remove-contact.png
  121. :align: left
  122. :alt: Removing a contact
  123. Removing a contact
  124. Removing a contact
  125. ==================
  126. To remove a contact, hover your mouse over their name and then click on the
  127. trash icon. You will be prompted to confirm, and if you do, the contact will no
  128. longer be visible in your roster.