features.rst 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. .. raw:: html
  2. <div id="banner"><a href="https://github.com/jcbrand/converse.js/blob/master/docs/source/features.rst">Edit me on GitHub</a></div>
  3. ========
  4. Features
  5. ========
  6. Open chats via URL
  7. ==================
  8. From version 3.3.0, converse.js now has the ability to open chats (private or
  9. groupchat) based on the URL fragment.
  10. A room (aka groupchat) can be opened with a URL fragment such as `#converse/room?jid=room@domain`
  11. and a private chat with a URL fragment such as
  12. `#converse/chat?jid=user@domain`.
  13. Off-the-record encryption
  14. =========================
  15. Converse.js supports `Off-the-record (OTR) <https://otr.cypherpunks.ca/>`_
  16. encrypted messaging.
  17. The OTR protocol not only **encrypts your messages**, it provides ways to
  18. **verify the identity** of the person you are talking to,
  19. **plausible deniability** and **perfect forward secrecy** by generating
  20. new encryption keys for each conversation.
  21. In its current state, JavaScript cryptography is fraught with dangers and
  22. challenges that make it impossible to reach the same standard of security that
  23. is available with native "desktop" software.
  24. This is due to its runtime malleability, the way it is "installed" (e.g.
  25. served) and the browser's lack of cryptographic primitives needed to implement
  26. secure crypto.
  27. For harsh but fairly valid criticism of JavaScript cryptography, read:
  28. `JavaScript Cryptography Considered Harmful <http://www.matasano.com/articles/javascript-cryptography/>`_.
  29. To get an idea on how this applies to OTR support in Converse.js, please read
  30. `my thoughts on it <https://opkode.com/media/blog/2013/11/11/conversejs-otr-support>`_.
  31. For now, suffice to say that although its useful to have OTR support in
  32. Converse.js in order to avoid most eavesdroppers, if you need serious
  33. communications privacy, then you're much better off using native software.
  34. Notifications
  35. =============
  36. From version 0.8.1 Converse.js can play a sound notification when you receive a
  37. message.
  38. For more info, refer to the :ref:`play-sounds` configuration setting.
  39. It can also show `desktop notification messages <https://developer.mozilla.org/en-US/docs/Web/API/notification>`_
  40. when the browser is not currently visible.
  41. For more info, refer to the :ref:`show-desktop-notifications` configuration setting.
  42. Multilingual Support
  43. ====================
  44. Converse.js is translated into multiple languages. The default build,
  45. ``converse.min.js``, includes all languages.
  46. Languages increase the size of the Converse.js significantly.
  47. If you only need one, or a subset of the available languages, it's better to
  48. make a custom build which includes only those languages that you need.
  49. Moderating chatrooms
  50. ====================
  51. Here are the different commands that may be used to moderate a chatroom:
  52. +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
  53. | Event Type | When is it triggered? | Example (substitue $nickname with an actual user's nickname) |
  54. +============+==============================================================================================+===============================================================+
  55. | **ban** | Ban a user from the chatroom. They will not be able to join again. | /ban $nickname |
  56. +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
  57. | **clear** | Clear the messages shown in the chatroom. | /clear |
  58. +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
  59. | **deop** | Make a moderator a normal occupant. | /deop $nickname [$reason] |
  60. +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
  61. | **help** | Show the list of available commands. | /help |
  62. +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
  63. | **kick** | Kick a user out of a room. They will be able to join again. | /kick $nickname [$reason] |
  64. +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
  65. | **me** | Speak in the 3rd person. | /me $message |
  66. +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
  67. | **mute** | Remove a user's ability to post messages to the room. They will still be able to observe. | /mute $nickname [$reason] |
  68. +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
  69. | **nick** | Change your nickname. | /nick $nickname |
  70. +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
  71. | **op** | Make a normal occupant a moderator. | /op $nickname [$reason] |
  72. +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
  73. | **topic** | Set the topic of the chatroom. | /topic ${topic text} |
  74. +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
  75. | **voice** | Allow a muted user to post messages to the room. | /voice $nickname [$reason] |
  76. +------------+----------------------------------------------------------------------------------------------+---------------------------------------------------------------+
  77. Passwordless login with client certificates
  78. ===========================================
  79. Converse.js supports the SASL-EXTERNAL authentication mechanism, which can be
  80. used together with x509 client certificates to enable passwordless login or
  81. even 2-factor authentication.
  82. For more info, `read this blog post <https://opkode.com/blog/strophe_converse_sasl_external/>`_.