0.1.0 • Published 4 years ago

itarverne-chat v0.1.0

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

React chat component

Simple react component using socket.io avaible in EN and FR.

Install

npm install

.env file

NameValueDescription
NODE_PATHsrc/project root
REACT_APP_CHAT_API"http://localhost:<your_port>/"chat backend address
REACT_APP_KB_BOT_NAME"<bot_name>"keyabse bot name

Props

NameTypedefault valueDescription
usernamestring, not required"anonymous"client username (ex: "bob", "anonymous")
supportstring, not required"support"support name
langstring, required"en"language

Usage

npm start