socket-for-chiji

A chat package for connecting to chat

Usage no npm install needed!

<script type="module">
  import socketForChiji from 'https://cdn.skypack.dev/socket-for-chiji';
</script>

README

socket-for-chiji

A chat package for connecting to chat

NPM JavaScript Style Guide

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