Websocket for builtin Prosody. WIP

This commit is contained in:
John Livingston
2022-08-24 17:55:24 +02:00
parent 507da6e042
commit 6f8c7b8a93
4 changed files with 104 additions and 40 deletions

View File

@ -127,6 +127,13 @@ window.initConverse = async function initConverse ({
body?.classList.add('livechat-transparent')
}
if (websocketServiceUrl?.startsWith('/')) {
websocketServiceUrl = new URL(
websocketServiceUrl,
(window.location.protocol === 'http:' ? 'ws://' : 'wss://') + window.location.host
).toString()
}
const params: any = {
assets_path: assetsPath,