Merge pull request #5 from TwilioDevEd/update-chat-sdk

Update Chat JS SDK to 0.12, remove endpoint from Chat Grant for token
This commit is contained in:
Jeff Linwood
2017-03-10 16:36:55 -06:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

2
app.py
View File

@@ -79,7 +79,7 @@ def token():
# Create an Chat grant and add to token
if chat_service_sid:
chat_grant = IpMessagingGrant(endpoint_id=endpoint, service_sid=chat_service_sid)
chat_grant = IpMessagingGrant(service_sid=chat_service_sid)
token.add_grant(chat_grant)
# Return token info as JSON

View File

@@ -19,7 +19,7 @@
<input id="chat-input" type="text" placeholder="say anything" autofocus/>
</section>
<script src="///media.twiliocdn.com/sdk/js/chat/v0.11/twilio-chat.js"></script>
<script src="///media.twiliocdn.com/sdk/js/chat/v0.12/twilio-chat.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="index.js"></script>
</body>