Twilio Sync JavaScript client library

Sync library provides a set of primitives for data synchronization

Using Sync Library

Obtaining token

Check out the token session in documentation on the Twilio website

Using nodejs library

npm install --save twilio-sync

Using prebuilt library on webpage

Just include sync lib on your page

<script type="text/javascript" src="https://media.twiliocdn.com/sdk/js/sync/v0.6/twilio-sync.js"></script>

Instantiate library

And now you can start using Sync library

var client = new Twilio.Sync.Client(token);