react-gossip
v0.1.0
Published
React component for gossip-js library
Readme
react-gossip
React chat component for gossip-js messaging library.
Installation
yarn add react-gossipor
npm install react-gossipRunning a Demo
To run a local demo of react-gossip:
- clone this repo
- install dependencies
- set value of
apiBaseprop for examples instories/index.js - run
yarn storybook.
Usage
<Gossip
shouldLog={true}
apiBase="yourApiBase.com"
isSSL={true}
channel="12345"
channelSecret="some_secret"
nick="Emir"
secret="EmirSecret"
threadId="ema"
onMessageSent={
(m) => {
console.log("Last message sent", m);
}
}/>Detailed examples can be found in stories/index.js.
