@d19n/webchat
v1.1.35
Published
D19N WebChat package
Maintainers
Readme
d19n-webchat
YouFibre Chat v1
Installation
You can install the package using npm:
npm install @d19n/webchatUsage
After installing, you can use the @d19n/webchat function in your project as follows:
Implementation:
import D19NChat from '@d19n/webchat';
<D19NChat
side={"..."}
fullscreen={false}
/>| Property | Type | Description |
| ------------- | :-------------: | ------------- |
| side | string | right as default |
| fullscreen | boolean | false as default |
Session storage:
| Property | Type | Description | | ------------- | :-------------: | ------------- | | authToken | string | JWT token for logged user |
Local storage:
| Property | Type | Description | | ------------- | :-------------: | ------------- | | websocketUrl | string | Websocket URL | | apiUrl | string | YouFibre API URL | | chatTime1 | number | Seconds after last post (default: 300) | | chatTime2 | number | Seconds after last present check (default: 360) |
License
This project is licensed under the MIT License.
