webpack.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Converse.js</title>
  5. <meta charset="utf-8">
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  8. <meta name="description" content="Converse.js: A free chat client for your website" />
  9. <link rel="shortcut icon" type="image/ico" href="favicon.ico"/>
  10. </head>
  11. <body class="reset"></body>
  12. <script>
  13. converse.plugins.add('converse-debug', {
  14. initialize () {
  15. const { _converse } = this;
  16. window._converse = _converse;
  17. }
  18. });
  19. converse.initialize({
  20. auto_register_muc_nickname: true,
  21. enable_smacks: true,
  22. auto_away: 300,
  23. i18n: 'af',
  24. view_mode: 'fullscreen',
  25. muc_respect_autojoin: true,
  26. bosh_service_url: 'http://chat.example.org:5380/http-bind/',
  27. websocket_url: 'ws://chat.example.org:5380/xmpp-websocket',
  28. whitelisted_plugins: ['converse-debug'],
  29. muc_domain: 'conference.chat.example.org',
  30. message_archiving: 'always',
  31. debug: true,
  32. jid: 'klaus.dresner@chat.example.org',
  33. password: 'secret',
  34. auto_login: true
  35. });
  36. </script>
  37. </html>