forked from conversejs/converse.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.html
64 lines (61 loc) · 2.56 KB
/
dev.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="en">
<head>
<title>Converse</title>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Converse XMPP/Jabber Chat" />
<meta name="author" content="JC Brand" />
<meta name="keywords" content="xmpp chat webchat converse.js" />
<link rel="manifest" href="./manifest.json" />
<link rel="shortcut icon" type="image/ico" href="images/favicon.ico" />
<link type="text/css" rel="stylesheet" media="screen" href="dist/converse.css" />
<script src="3rdparty/libsignal-protocol.js"></script>
<script src="dist/converse.js"></script>
</head>
<body class="reset">
<div id="conversejs-bg"></div>
<script>
converse.plugins.add('converse-debug', {
initialize() {
const { _converse } = this;
window._converse = _converse;
}
});
converse.initialize({
getAuthorizationToken: function() {
return 'bearer 1234';
},
auto_away: 300,
i18n: 'es',
// keepalive: true,
// auto_login: false,
// auto_join_rooms: [
// '[email protected]',
// '[email protected]',
// '[email protected]'
// ],
// theme: 'concord',
// muc_show_logs_before_join: true,
// websocket_url: 'wss://conversejs.org/xmpp-websocket',
bosh_service_url: 'https://chat.gointegro.com/http-bind', // Please use this connection manager only for testing purposes
// whitelisted_plugins: ['converse-debug'],
// view_mode: 'fullscreen',
// notify_all_room_messages: [
// '[email protected]'
// ],
authentication: 'prebind',
// jid: '3576@18',
auto_login: true,
prebind_url: 'http://localhost:3000/prebind',
enable_smacks: true,
persistent_store: 'IndexedDB',
muc_respect_autojoin: true,
message_archiving: 'always',
loglevel: 'debug',
allow_logout: false
});
</script>
</body>
</html>