@royaltics/chatsocket-react-sails
v0.1.12
Published
A Widget for reactjs and sailsjs server
Downloads
9
Maintainers
Readme
@royaltics/chatsocket-react-sails
A Button react.js for payphone checkout
Install
npm install --save @royaltics/chatsocket-react-sails
Usage
import React from 'react'
import ChatBoxComponent from 'chatsocket-react-sails'
const App = () => {
return <ChatBoxComponent
title="Royaltics Solutions"
agentName="asdasdas"
agentStatus="asdasdasd"
agentPhoto="https://cdn-icons-png.flaticon.com/512/29/29508.png"
style={
{
primaryColor: 'green'
}
}
optionsSocket={
{
url: 'http://localhost:1338'
}
}
optionsFiles={{
endpointUpload: 'http://localhost:1338',
onCapture: (blob: any) => {
console.log(blob, "///////")
},
onError: (err: any) => console.log(err)
}}
btnTitle="XXXX"
channel_uuid="a24a6ea4-ce75-4665-a070-57453082c256"
/>
}
export default App
License
MIT © royaltics-solutions