Twilio Chat client library

Twilio Chat is a service for messages delivery over ip networks. Visit our official site for more detalis:

Instantiating and using

To use the library you will need to generate a token and pass it to the Chat Client constructor.

var client = new Twilio.Chat.Client(token);
  .then(function() {
    // Hey! I can start using a library!

Example above is minimal. Most likely you will want to control token lifecycle as well with Access Manager.

Consuming a library

You can consume the library from NPM:

npm install twilio-chat

For browser you can use the version from CDN:

<script src="//"></script>