Twilio Sync JavaScript client library
Sync library provides a set of primitives for data synchronization
Using Sync Library
Include library
To use this library you will need an AccessManager from Twilio Common library.
You may include it from CDN:
<script src="https://media.twiliocdn.com/sdk/js/common/v0.1/twilio-common.js"></script>
Then include datasync lib on your page
<script type="text/javascript" src="https://media.twiliocdn.com/sdk/js/sync/v0.2/twilio-sync.js"></script>
Instantiate library
And now you can start using Sync library
var accessManager = new Twilio.AccessManager(token);
var client = new Twilio.Sync.Client(accessManager);