Skip to content

Commit af86e55

Browse files
authored
SPRINT 16 (#316)
**New**: - Add header 'QB-OS' in all API requests for improving analytics; **Updated:** - Encode body of all API requests; Encode based on this https://en.wikipedia.org/wiki/Percent-encoding#Percent-encoding_reserved_characters; - Rework `muc.join` method: - Rework putting parameters of the muc.join method. Now could pass `jid` or `id` of a dialog; - Now uses Node.js callbacks approach instead of a returned stanza if you pass 2 arguments to the callback function. **If you pass 1 arguments you will get stanza element as before**; ``` QB.chat.muc.join(dialogId, function(error, response) { if(error) { console.log('Error is null when all is Ok'); } console.log(`response.dialogId` is always contains in response); }); ``` - QB.webrtc.onCallStatsReport(session, userId, stats, error) will return new (uptaded) stats: ``` stats = { local: { audio: { bitrate: 71, // kilobits per second (kbps) bytesSent: 226410, packetsSent: 1250, timestamp: 1522680935736 }, video: { frameHeight: 480, frameWidth: 640, framesPerSecond: 25.8, bitrate: 498, // kilobits per second (kbps) bytesSent: 1438862, packetsSent: 1498, timestamp: 1522680935736 }, candidate: { protocol: "udp" ip: "192.168.1.179" port: 51038 } }, remote: { audio: { bitrate: 47, // kilobits per second (kbps) bytesReceived: 148211, packetsReceived: 1250, timestamp: 1522680935736 }, video: { frameHeight: 480, frameWidth: 640, framesPerSecond: 30.4, bitrate: 533, // kilobits per second (kbps) bytesReceived: 1663716, packetsReceived: 1498, timestamp: 1522680935736 }, candidate: { protocol: "udp", ip: "192.168.1.179", port: 51908 } } } ```
1 parent 8628187 commit af86e55

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1514
-585
lines changed

.codeclimate.yml

-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ exclude_paths:
1313
- "spec/"
1414
- "docs/"
1515
- "samples/"
16-
- "src/plugins/jquery.ajax.js"

.eslintignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
**/*{.,-}min.js
2-
src/plugins/jquery.ajax.js

.jshintignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
src/plugins/jquery.ajax.js
1+

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Check out our [API Reference](https://quickblox.github.io/quickblox-javascript-s
1616
## Dependencies for browser
1717

1818
```html
19-
<script src="https://cdnjs.cloudflare.com/ajax/libs/quickblox/2.10.0/quickblox.min.js"></script>
19+
<script src="https://cdnjs.cloudflare.com/ajax/libs/quickblox/2.11.0/quickblox.min.js"></script>
2020
```
2121

2222
## Bower and RequireJS

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "quickblox",
33
"description": "QuickBlox JavaScript SDK",
4-
"version": "2.10.0",
4+
"version": "2.11.0",
55
"homepage": "https://quickblox.com/developers/Javascript",
66
"main": "quickblox.js",
77
"license": "Apache 2.0",

docs/QB.addressbook.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ <h5>Example</h5>
12911291

12921292

12931293
<footer>
1294-
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Feb 28 2018 18:12:50 GMT+0200 (FLE Standard Time)
1294+
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Apr 12 2018 14:47:36 GMT+0300 (FLE Daylight Time)
12951295
</footer>
12961296
</div>
12971297
</div>

docs/QB.chat.dialog.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ <h4 class="name" id=".update">
13091309

13101310

13111311
<footer>
1312-
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Feb 28 2018 18:12:50 GMT+0200 (FLE Standard Time)
1312+
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Apr 12 2018 14:47:36 GMT+0300 (FLE Daylight Time)
13131313
</footer>
13141314
</div>
13151315
</div>

docs/QB.chat.helpers.html

+14-14
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ <h4 class="name" id=".getBsonObjectId">
745745

746746

747747
<div class="tag-source">
748-
modules/chat/qbChat.js, line 2351
748+
modules/chat/qbChat.js, line 2360
749749
</div>
750750

751751
</div>
@@ -845,7 +845,7 @@ <h4 class="name" id=".getDialogIdFromNode">
845845

846846

847847
<div class="tag-source">
848-
modules/chat/qbChat.js, line 2295
848+
modules/chat/qbChat.js, line 2304
849849
</div>
850850

851851
</div>
@@ -990,7 +990,7 @@ <h4 class="name" id=".getIdFromNode">
990990

991991

992992
<div class="tag-source">
993-
modules/chat/qbChat.js, line 2285
993+
modules/chat/qbChat.js, line 2294
994994
</div>
995995

996996
</div>
@@ -1135,7 +1135,7 @@ <h4 class="name" id=".getIdFromResource">
11351135

11361136

11371137
<div class="tag-source">
1138-
modules/chat/qbChat.js, line 2327
1138+
modules/chat/qbChat.js, line 2336
11391139
</div>
11401140

11411141
</div>
@@ -1280,7 +1280,7 @@ <h4 class="name" id=".getRecipientId">
12801280

12811281

12821282
<div class="tag-source">
1283-
modules/chat/qbChat.js, line 2245
1283+
modules/chat/qbChat.js, line 2254
12841284
</div>
12851285

12861286
</div>
@@ -1448,7 +1448,7 @@ <h4 class="name" id=".getRoomJid">
14481448

14491449

14501450
<div class="tag-source">
1451-
modules/chat/qbChat.js, line 2317
1451+
modules/chat/qbChat.js, line 2326
14521452
</div>
14531453

14541454
</div>
@@ -1616,7 +1616,7 @@ <h4 class="name" id=".getRoomJidFromDialogId">
16161616

16171617

16181618
<div class="tag-source">
1619-
modules/chat/qbChat.js, line 2306
1619+
modules/chat/qbChat.js, line 2315
16201620
</div>
16211621

16221622
</div>
@@ -1761,7 +1761,7 @@ <h4 class="name" id=".getRoomJidFromRoomFullJid">
17611761

17621762

17631763
<div class="tag-source">
1764-
modules/chat/qbChat.js, line 2340
1764+
modules/chat/qbChat.js, line 2349
17651765
</div>
17661766

17671767
</div>
@@ -1906,7 +1906,7 @@ <h4 class="name" id=".getUserIdFromRoomJid">
19061906

19071907

19081908
<div class="tag-source">
1909-
modules/chat/qbChat.js, line 2361
1909+
modules/chat/qbChat.js, line 2370
19101910
</div>
19111911

19121912
</div>
@@ -2051,7 +2051,7 @@ <h4 class="name" id=".getUserJid">
20512051

20522052

20532053
<div class="tag-source">
2054-
modules/chat/qbChat.js, line 2262
2054+
modules/chat/qbChat.js, line 2271
20552055
</div>
20562056

20572057
</div>
@@ -2219,7 +2219,7 @@ <h4 class="name" id=".getUserNickWithMucDomain">
22192219

22202220

22212221
<div class="tag-source">
2222-
modules/chat/qbChat.js, line 2275
2222+
modules/chat/qbChat.js, line 2284
22232223
</div>
22242224

22252225
</div>
@@ -2364,7 +2364,7 @@ <h4 class="name" id=".jidOrUserId">
23642364

23652365

23662366
<div class="tag-source">
2367-
modules/chat/qbChat.js, line 2208
2367+
modules/chat/qbChat.js, line 2217
23682368
</div>
23692369

23702370
</div>
@@ -2512,7 +2512,7 @@ <h4 class="name" id=".typeChat">
25122512

25132513

25142514
<div class="tag-source">
2515-
modules/chat/qbChat.js, line 2226
2515+
modules/chat/qbChat.js, line 2235
25162516
</div>
25172517

25182518
</div>
@@ -2668,7 +2668,7 @@ <h5>Returns:</h5>
26682668

26692669

26702670
<footer>
2671-
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Feb 28 2018 18:12:50 GMT+0200 (FLE Standard Time)
2671+
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Apr 12 2018 14:47:37 GMT+0300 (FLE Daylight Time)
26722672
</footer>
26732673
</div>
26742674
</div>

0 commit comments

Comments
 (0)