@knotfive/chatpi-client-js
v0.0.30
Published
client library for chatpi
Downloads
6
Readme
Javascript Client for ChatPi
For api docs: Globals
###Usage Create a connection obj. And then push to a channel
`js const connection = new Connection({ url, apiKey, channelIds, userToken, authorizationToken, onPresenceChange, })
sendMessage({ channel: 'cf4aeae1-cda7-41f3-adf7-9b2bb377be7d4', message: { text: 'hi', }, }).then((response) => console.log(response)) `