|
@@ -55,6 +55,11 @@
|
|
<script>
|
|
<script>
|
|
require(['converse'], function (converse) {
|
|
require(['converse'], function (converse) {
|
|
converse.initialize({
|
|
converse.initialize({
|
|
|
|
+ allow_muc_invitations: false, // Doesn't make sense to allow because only
|
|
|
|
+ // roster contacts can be invited
|
|
|
|
+ allow_contact_requests: false, // Contacts from other servers cannot,
|
|
|
|
+ // be added and anonymous users don't
|
|
|
|
+ // know one another's JIDs, so disabling.
|
|
authentication: 'anonymous',
|
|
authentication: 'anonymous',
|
|
auto_login: true,
|
|
auto_login: true,
|
|
auto_join_rooms: [
|
|
auto_join_rooms: [
|
|
@@ -64,8 +69,11 @@
|
|
'anonymous@conference.nomnom.im',
|
|
'anonymous@conference.nomnom.im',
|
|
],
|
|
],
|
|
bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
|
|
bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
|
|
- jid: 'nomnom.im',
|
|
|
|
|
|
+ jid: 'nomnom.im', // XMPP server which allows anonymous login (doesn't
|
|
|
|
+ // allow chatting with other XMPP servers).
|
|
keepalive: true,
|
|
keepalive: true,
|
|
|
|
+ hide_muc_server: true, // Federation is disabled, so no use in
|
|
|
|
+ // showing the MUC server.
|
|
play_sounds: true,
|
|
play_sounds: true,
|
|
show_controlbox_by_default: true,
|
|
show_controlbox_by_default: true,
|
|
strict_plugin_dependencies: false,
|
|
strict_plugin_dependencies: false,
|