- Copy
credentials.example.jsontocredentials.json - Plug your credentials into
credentials.json| Config Value | Description | | :------------- |:------------- |accountSid| Your primary Twilio account identifier - find this in the console here.signingKeySid| The SID for your API Key, used to authenticate - generate one here.signingKeySecret| The secret for your API Key, used to authenticate - you'll get this when you create your API key, as aboveserviceSid| Like a database for your Chat data - generate one in the console here
$ npm install $ npm start Connect via http://localhost:8080
This demo defaults to using the latest build of the Chat JS SDK. To change to a different version, just open public/index.html and change the following string to point to the URL of the version you'd like to use:
<script src="https://media.twiliocdn.com/sdk/js/chat/releases/0.11.1/twilio-chat.js"></script>