0.1.0 • Published 4 years ago

@monksoftware/bob-core-webchat v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

bot-webclient - EiME Bot Platform Web Client

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Generate Stand-alone Web Component

npm run build-wc

Chat configuration file

To load the configuration variables you've to add a json file named `config.json` into the `src/config` folder.
This file has to have the following structure:
{
  "XMPP_ENDPOINT": "wss://...",
  "XMPP_DOMAIN": "botname_here",
  "XMPP_RECEIVER": "botdomain_here",
  "XMPP_THREAD": "not always necessary",
  "BASE_ENDPOINT": "https://xmpp-ENV.monksoftware.it/api/v1",
  "ATTACHMENTS_ENDPOINT": "https://xmpp-ENV.monksoftware.it/api/v1/attachments"
}

MISC

This webchat uses PLAIN XMPP login method as default. If you need or want to use ANONYMOUS XMPP login feature instead, you just need to avoid to setup CHAT_USERNAME and CHAT_PWD into configuration file and it will magically works!