2
0

dev.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. <meta name="author" content="JC Brand" />
  10. <meta name="keywords" content="xmpp chat webchat converse.js" />
  11. <link rel="shortcut icon" type="image/ico" href="css/images/favicon.ico"/>
  12. <link type="text/css" rel="stylesheet" media="screen" href="css/fullpage.css" />
  13. <link type="text/css" rel="stylesheet" media="screen" href="css/converse.css" />
  14. <script src="node_modules/requirejs/require.js"></script>
  15. <script src="src/config.js"></script>
  16. </head>
  17. <body class="reset">
  18. <script>
  19. require(['converse'], function (converse) {
  20. converse.initialize({
  21. auto_away: 300,
  22. i18n: 'en',
  23. // auto_join_rooms: [
  24. // 'discuss@conference.conversejs.org',
  25. // 'prosody@conference.prosody.im',
  26. // 'jdev@conference.jabber.org'
  27. // ],
  28. // websocket_url: 'ws://chat.example.org:5280/xmpp-websocket',
  29. view_mode: 'fullscreen',
  30. archived_messages_page_size: '500',
  31. allow_public_bookmarks: true,
  32. notify_all_room_messages: [
  33. 'discuss@conference.conversejs.org'
  34. ],
  35. bosh_service_url: 'http://chat.example.org:5280/http-bind/',
  36. // bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
  37. message_archiving: 'always',
  38. debug: true
  39. });
  40. });
  41. </script>
  42. </body>
  43. </html>