Skip to content

Commit fe0e23b

Browse files
committed
Custom endpoints for js chat
1 parent bc3c5c0 commit fe0e23b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

samples/chat/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,11 +623,11 @@ <h3><%- credentials.accountKey %></h3>
623623
</div>
624624
<div class="controls-text-fields-with-titl">
625625
<div>API domain</div>
626-
<h3><%- credentials.apiDomain %></h3>
626+
<h3><%- appConfig.endpoints.api %></h3>
627627
</div>
628628
<div class="controls-text-fields-with-titl">
629629
<div>Chat domain</div>
630-
<h3><%- credentials.chatDomain %></h3>
630+
<h3><%- appConfig.endpoints.chat %></h3>
631631
</div>
632632
</div>
633633
</script>

samples/chat/js/QBconfig.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ var QBconfig = {
44
authKey: '',
55
authSecret: '',
66
accountKey: '',
7-
apiDomain: 'https://api.quickblox.com',
8-
chatDomain: 'chat.quickblox.com'
97
},
108
appConfig: {
119
chatProtocol: {
1210
active: 2
1311
},
12+
endpoints: {
13+
api: 'api.quickblox.com',
14+
chat: 'chat.quickblox.com'
15+
},
1416
streamManagement: {
1517
enable: true
1618
},

0 commit comments

Comments
 (0)