1.1.2 • Published 5 years ago
intellicon-chatter v1.1.2
##Intellicon chat sdk for accessing Intellicon Chat from public interface
THIS PACKAGE IS IN UNDER DEVELOPMENT
###Install
npm install intellicon-chatter
#####then import into your file
const chatter = require(' intellicon-chatter');
Following events are available to interact with Intellicon chat with their arguments and details
connect with Intellicon Server using
chatter.connect(token, callback); token = token string as url parameter (provided in shared URL) callback = function with two arguments `event` and `data` that will called whenever any defined event occured
join intellicon chat using
chatter.join(name,email); name = user name who is accessing chat email = user email who is accessing chat
send a message to Intellicon chat
chatter.sendMessage(message,type); - `message` can be simple text than `type` is text - `message` can be media than `type` is media