New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@startinblox/component-chat

Package Overview
Dependencies
Maintainers
0
Versions
305
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@startinblox/component-chat

Solid XMPP Chat Web Component

latest
npmnpm
Version
7.1.5
Version published
Maintainers
0
Created
Source

Solid XMPP Chat

Solid XMPP Chat is an XMPP client based on Web Component and the ConverseJS library.

The goal of Solid XMPP Chat, and its family of web components, is to allow you to deploy a chat on your application by adding a single <solid-xmpp-chat> tag to your HTML, let alone the configuration of the XMPP server.

Prerequisite

You'll need a DjangoLDP server with at least djangoldp-account and a Prosody server with custom-modules.

How to use

You can use the solid-xmpp-chat component:

<html>
<head>
  <!-- import the module in the head of the page -->
  <script type="module" src="https://cdn.jsdelivr.net/npm/@startinblox/component-chat/"></script>
</head>

<body>
  <!-- use the component -->
  <solid-xmpp-chat data-src="[url]"
    data-websocket-url="[your_prosody_url]">
  </solid-xmpp-chat>
</body>
</html>

Notes that the "[url]" should be replace by your code fragment api link. It could be an user or any resource with a foaf:jabberID.

Parameters

NameDefaultDescription
data-srcundefinedURL of any resource with a foaf:jabberID
data-websocket-urlwss://jabber.happy-dev.fr/xmpp-websocketWebsocket URL of your Prosody with custom-modules.

Developpers

Installation:

npm install

Build with:

npm run build

Watch files & rebuild on change with this command:

npm run watch

Well done !

FAQs

Package last updated on 12 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts