README
socket-for-chiji
A chat package for connecting to chat
Install
npm install --save socket-for-chiji
Usage
import React, { Component } from 'react'
import { Socket, connectSocket, getChatList } from 'socket-for-chiji'
// import MyComponent from 'socket-for-chiji'
// import 'socket-for-chiji/dist/index.css'
class Example extends Component {
render() {
return (
<Socket
host={'web'} // web or mobile
token={""} // user token
offlineList={[]} // offline agents
onlineList={[]} // online agents
/>
);
}
}
License
MIT © akinolu52