Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • components/solid-xmpp-chat
  • deleolajide/sib-chat
  • MattJ/sib-chat
3 results
Show changes
Commits on Source (3)
......@@ -22,7 +22,7 @@ You can use the `solid-xmpp-chat` component:
<body>
<!-- use the component -->
<solid-xmpp-chat data-src="[url]"
data-bosh-service-url="[your_prosody_url]">
data-websocket-url="[your_prosody_url]">
</solid-xmpp-chat>
</body>
</html>
......@@ -35,7 +35,7 @@ Notes that the "[url]" should be replace by your code fragment api link. It coul
| Name | Default | Description |
| --------------- | ---------------------- | :----------------------------------------------------------- |
| `data-src` | `undefined` | URL of any resource with a `foaf:jabberID` |
| `data-bosh-service-url` | `undefined` | URL of your Prosody with custom-modules. |
| `data-websocket-url` | `wss://jabber.happy-dev.fr/xmpp-websocket` | Websocket URL of your Prosody with custom-modules. |
## Developpers
......
......@@ -33,8 +33,9 @@ export const SolidXMPPChat = {
type: String,
default: 'fr',
},
boshServiceUrl: {
type: String
websocketUrl: {
type: String,
default: 'wss://jabber.happy-dev.fr/xmpp-websocket',
},
},
......@@ -240,7 +241,7 @@ export const SolidXMPPChat = {
converse.initialize({
'assets_path': ComponentPath,
'authentication': this.element.dataset.authentication,
'authentication': this.element.dataset.authentication || 'login',
'password': idToken,
'allow_chat_pending_contacts': true,
'allow_non_roster_messaging': true,
......@@ -252,10 +253,11 @@ export const SolidXMPPChat = {
'auto_join_on_invite': true,
'auto_reconnect': true,
'auto_register_muc_nickname': true,
'bosh_service_url': this.element.dataset.boshServiceUrl,
'websocket_url': this.element.dataset.websocketUrl || 'wss://jabber.happy-dev.fr/xmpp-websocket',
'enable_smacks': true,
"clear_messages_on_reconnection": false,
'jid': jabberID.toLowerCase(),
'i18n': this.element.dataset.i18n,
'i18n': this.element.dataset.i18n || 'fr',
'loglevel': 'fatal',
'message_archiving': 'always',
'message_archiving_timeout': 60000,
......@@ -268,6 +270,7 @@ export const SolidXMPPChat = {
'root': this.element.shadowRoot,
'show_client_info': false,
'show_desktop_notifications': false,
'persistent_store': 'IndexedDB',
// 'use_system_emojis': false,
// 'show_send_button': true,
'sounds_path': ComponentPath,
......