document.addEventListener('DOMContentLoaded', function () {
converse.initialize({
//loglevel: 'debug', // helpful during setup, remove later
view_mode: 'overlayed', //'fullscreen', // make Converse take the whole page
// Connection/auth
authentication: 'anonymous',
allow_logout: false, // No point in logging out when we have auto_login as true.
allow_muc_invitations: false,
allow_contact_requests: false,
auto_login: true,
jid: 'anon.chatnowhere.com', // replace with your ANON_HOST
websocket_url: 'wss://chatnowhere.com/xmpp-websocket',
connection_types: ['websocket'],
discover_connection_methods: false,
// Assets: must point to the extracted dist/ folder for 11.0.1
assets_path: '/dist/',
// UI behavior
singleton: true,
allow_adhoc_commands: false,
whitelisted_plugins: [],
// Pre-open private chat with the admin
auto_join_private_chats: ['ben@chatnowhere.com',],
// Enable file uploads
http_upload_url: '/upload'
});
});