Update Chat JS SDK to 0.12, remove endpoint from Chat Grant for token
This commit is contained in:
2
app.py
2
app.py
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user