quickblox 2.17.2-logger → 2.17.3-logger

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/package.json +1 -2
  2. package/quickblox.js +36560 -38627
  3. package/quickblox.min.js +1 -1
  4. package/src/libs/strophe/strophe.common.js +6657 -0
  5. package/src/libs/strophe/strophe.esm.js +6649 -0
  6. package/src/libs/strophe/strophe.umd.js +6862 -0
  7. package/src/libs/strophe/strophe.umd.min.js +1 -0
  8. package/src/modules/chat/qbChat.js +9 -0
  9. package/src/modules/webrtc/qbWebRTCSignalingProcessor.js +2 -1
  10. package/src/modules/webrtc/qbWebRTCSignalingProvider.js +2 -2
  11. package/src/qbConfig.js +1 -1
  12. package/src/qbStrophe.js +2 -1
  13. package/strophejs-1.4.0/.eslintrc.json +264 -0
  14. package/strophejs-1.4.0/.gitattributes +1 -0
  15. package/strophejs-1.4.0/CHANGELOG.md +250 -0
  16. package/strophejs-1.4.0/LICENSE.txt +19 -0
  17. package/strophejs-1.4.0/Makefile +92 -0
  18. package/strophejs-1.4.0/README.md +45 -0
  19. package/strophejs-1.4.0/RELEASE_CHECKLIST.md +16 -0
  20. package/strophejs-1.4.0/contrib/discojs/README.txt +42 -0
  21. package/strophejs-1.4.0/contrib/discojs/css/disco.css +16 -0
  22. package/strophejs-1.4.0/contrib/discojs/index.html +47 -0
  23. package/strophejs-1.4.0/contrib/discojs/punjab.tac +18 -0
  24. package/strophejs-1.4.0/contrib/discojs/scripts/basic.js +102 -0
  25. package/strophejs-1.4.0/contrib/discojs/scripts/disco.js +60 -0
  26. package/strophejs-1.4.0/docs.css +797 -0
  27. package/strophejs-1.4.0/examples/amd.html +21 -0
  28. package/strophejs-1.4.0/examples/attach/README +37 -0
  29. package/strophejs-1.4.0/examples/attach/__init__.py +0 -0
  30. package/strophejs-1.4.0/examples/attach/attacher/__init__.py +0 -0
  31. package/strophejs-1.4.0/examples/attach/attacher/views.py +18 -0
  32. package/strophejs-1.4.0/examples/attach/boshclient.py +158 -0
  33. package/strophejs-1.4.0/examples/attach/manage.py +11 -0
  34. package/strophejs-1.4.0/examples/attach/settings.py +85 -0
  35. package/strophejs-1.4.0/examples/attach/templates/attacher/index.html +88 -0
  36. package/strophejs-1.4.0/examples/attach/urls.py +19 -0
  37. package/strophejs-1.4.0/examples/basic.html +23 -0
  38. package/strophejs-1.4.0/examples/basic.js +73 -0
  39. package/strophejs-1.4.0/examples/echobot.html +25 -0
  40. package/strophejs-1.4.0/examples/echobot.js +79 -0
  41. package/strophejs-1.4.0/examples/main.js +59 -0
  42. package/strophejs-1.4.0/examples/prebind.html +39 -0
  43. package/strophejs-1.4.0/examples/prebind.js +103 -0
  44. package/strophejs-1.4.0/examples/restore.html +24 -0
  45. package/strophejs-1.4.0/examples/restore.js +71 -0
  46. package/strophejs-1.4.0/package-lock.json +8631 -0
  47. package/strophejs-1.4.0/package.json +84 -0
  48. package/strophejs-1.4.0/rollup.config.js +76 -0
  49. package/strophejs-1.4.0/src/bosh.js +916 -0
  50. package/strophejs-1.4.0/src/core.js +3530 -0
  51. package/strophejs-1.4.0/src/md5.js +204 -0
  52. package/strophejs-1.4.0/src/sha1.js +172 -0
  53. package/strophejs-1.4.0/src/shared-connection-worker.js +114 -0
  54. package/strophejs-1.4.0/src/shims.js +123 -0
  55. package/strophejs-1.4.0/src/strophe.js +14 -0
  56. package/strophejs-1.4.0/src/utils.js +63 -0
  57. package/strophejs-1.4.0/src/websocket.js +557 -0
  58. package/strophejs-1.4.0/src/worker-websocket.js +150 -0
  59. package/strophejs-1.4.0/tests/index.html +21 -0
  60. package/strophejs-1.4.0/tests/main.js +49 -0
  61. package/strophejs-1.4.0/tests/tests.js +929 -0
  62. package/strophejs-1.6.1/.eslintrc.json +264 -0
  63. package/strophejs-1.6.1/.gitattributes +1 -0
  64. package/strophejs-1.6.1/.nvmrc +1 -0
  65. package/strophejs-1.6.1/CHANGELOG.md +288 -0
  66. package/strophejs-1.6.1/LICENSE.txt +19 -0
  67. package/strophejs-1.6.1/Makefile +92 -0
  68. package/strophejs-1.6.1/README.md +46 -0
  69. package/strophejs-1.6.1/RELEASE_CHECKLIST.md +18 -0
  70. package/strophejs-1.6.1/babel.config.json +10 -0
  71. package/strophejs-1.6.1/contrib/discojs/README.txt +42 -0
  72. package/strophejs-1.6.1/contrib/discojs/css/disco.css +16 -0
  73. package/strophejs-1.6.1/contrib/discojs/index.html +47 -0
  74. package/strophejs-1.6.1/contrib/discojs/punjab.tac +18 -0
  75. package/strophejs-1.6.1/contrib/discojs/scripts/basic.js +102 -0
  76. package/strophejs-1.6.1/contrib/discojs/scripts/disco.js +60 -0
  77. package/strophejs-1.6.1/docs.css +797 -0
  78. package/strophejs-1.6.1/examples/amd.html +21 -0
  79. package/strophejs-1.6.1/examples/attach/README +37 -0
  80. package/strophejs-1.6.1/examples/attach/__init__.py +0 -0
  81. package/strophejs-1.6.1/examples/attach/attacher/__init__.py +0 -0
  82. package/strophejs-1.6.1/examples/attach/attacher/views.py +18 -0
  83. package/strophejs-1.6.1/examples/attach/boshclient.py +158 -0
  84. package/strophejs-1.6.1/examples/attach/manage.py +11 -0
  85. package/strophejs-1.6.1/examples/attach/settings.py +85 -0
  86. package/strophejs-1.6.1/examples/attach/templates/attacher/index.html +88 -0
  87. package/strophejs-1.6.1/examples/attach/urls.py +19 -0
  88. package/strophejs-1.6.1/examples/basic.html +23 -0
  89. package/strophejs-1.6.1/examples/basic.js +73 -0
  90. package/strophejs-1.6.1/examples/echobot.html +25 -0
  91. package/strophejs-1.6.1/examples/echobot.js +79 -0
  92. package/strophejs-1.6.1/examples/main.js +59 -0
  93. package/strophejs-1.6.1/examples/prebind.html +39 -0
  94. package/strophejs-1.6.1/examples/prebind.js +103 -0
  95. package/strophejs-1.6.1/examples/restore.html +24 -0
  96. package/strophejs-1.6.1/examples/restore.js +71 -0
  97. package/strophejs-1.6.1/package-lock.json +18461 -0
  98. package/strophejs-1.6.1/package.json +87 -0
  99. package/strophejs-1.6.1/rollup.config.js +70 -0
  100. package/strophejs-1.6.1/src/bosh.js +916 -0
  101. package/strophejs-1.6.1/src/builder.js +239 -0
  102. package/strophejs-1.6.1/src/constants.js +155 -0
  103. package/strophejs-1.6.1/src/core.js +2377 -0
  104. package/strophejs-1.6.1/src/sasl-anon.js +17 -0
  105. package/strophejs-1.6.1/src/sasl-external.js +27 -0
  106. package/strophejs-1.6.1/src/sasl-oauthbearer.js +30 -0
  107. package/strophejs-1.6.1/src/sasl-plain.js +32 -0
  108. package/strophejs-1.6.1/src/sasl-sha1.js +24 -0
  109. package/strophejs-1.6.1/src/sasl-sha256.js +24 -0
  110. package/strophejs-1.6.1/src/sasl-sha384.js +24 -0
  111. package/strophejs-1.6.1/src/sasl-sha512.js +24 -0
  112. package/strophejs-1.6.1/src/sasl-xoauth2.js +27 -0
  113. package/strophejs-1.6.1/src/sasl.js +143 -0
  114. package/strophejs-1.6.1/src/scram.js +182 -0
  115. package/strophejs-1.6.1/src/shared-connection-worker.js +114 -0
  116. package/strophejs-1.6.1/src/shims.js +122 -0
  117. package/strophejs-1.6.1/src/strophe.js +15 -0
  118. package/strophejs-1.6.1/src/utils.js +626 -0
  119. package/strophejs-1.6.1/src/websocket.js +556 -0
  120. package/strophejs-1.6.1/src/worker-websocket.js +149 -0
  121. package/strophejs-1.6.1/tests.js +993 -0
@@ -0,0 +1,46 @@
1
+ # Strophe.js
2
+
3
+ ![Build Status](https://github.com/strophe/strophejs/actions/workflows/karma-tests.yml/badge.svg)
4
+
5
+
6
+ Strophe.js is a JavaScript library for speaking XMPP via BOSH
7
+ ([XEP 124](https://xmpp.org/extensions/xep-0124.html)
8
+ and [XEP 206](https://xmpp.org/extensions/xep-0206.html)) and WebSockets
9
+ ([RFC 7395](http://tools.ietf.org/html/rfc7395)).
10
+
11
+ Its primary purpose is to enable web-based, real-time XMPP applications that
12
+ run in any browser.
13
+
14
+ The book [Professional XMPP Programming with JavaScript and jQuery](http://professionalxmpp.com)
15
+ covers Strophe in detail in the context of web applications.
16
+
17
+ ## Quick Links
18
+
19
+ * [Homepage](https://strophe.im/strophejs/)
20
+ * [Documentation](https://strophe.im/strophejs/doc/1.6.0/files/strophe-umd-js.html)
21
+ * [Mailing list](https://groups.google.com/g/strophe)
22
+ * [Community Plugins](https://github.com/strophe/strophejs-plugins)
23
+
24
+ ## Browser support
25
+
26
+ Versions <= 1.2.16 have been tested on Firefox, Firefox for Android, IE, Safari,
27
+ Mobile Safari, Chrome, Chrome for Android, Opera and the mobile Opera browser.
28
+
29
+ Since version 1.3.0, support for IE < 11 has been dropped.
30
+
31
+ ## Running tests
32
+
33
+ You'll need to have [GNU Make](https://www.gnu.org/software/make/) available.
34
+ Then, simply run `make check` to run the tests.
35
+
36
+ ## License
37
+
38
+ It is licensed under the [MIT license](https://github.com/strophe/strophejs/raw/master/LICENSE.txt),
39
+ except for the files sha1.js, base64.js and md5.js, which are licensed as public domain and BSD (see these files for details).
40
+
41
+ ## Author & History
42
+
43
+ Strophe.js was originally created by Jack Moffitt. It was originally developed
44
+ for Chesspark, an online chess community based on XMPP technology. It has been
45
+ cared for and improved over the years and is currently maintained by many
46
+ people in the community.
@@ -0,0 +1,18 @@
1
+ # Release Checklist
2
+
3
+ ## Note: it's assumed that you have Strophe.js and Strophe.im checked out in sibling directories.
4
+
5
+ 1. Make sure all tests pass (run 'make check')
6
+ 2. Update CHANGELOG.md
7
+ 3. Run `make release VERSION=1.6.1` (on Mac, prefix with "SED=gsed" so that GNU-sed is used).
8
+ 4. Run `make doc`
9
+ 5. Run `cp -r doc ../strophe.im/strophejs/doc/1.6.1`
10
+ 5. Update links in `../strophe.im/strophejs/index.markdown` in Strophe.im
11
+ 6. `git commit -am "Docs for Strophe.js 1.6.1" && git push`
12
+ 7. Update link to documentation in README (of strophe.js)
13
+ 8. `cd ../strophe.js && git commit -am "Release 1.6.1"`
14
+ 9. `git tag -s v1.6.1 -m "Release 1.6.1"`
15
+ 10. Run `git push && git push origin v1.6.1`
16
+ 11. Publish on NPM: `npm publish`
17
+ 12. Update the release notes on https://github.com/strophe/strophejs/releases
18
+ 13. Run `npm pack` and upload the tgz file to the releases page.
@@ -0,0 +1,10 @@
1
+ {
2
+ "presets": [
3
+ ["@babel/preset-env", {
4
+ "targets": {
5
+ "browsers": [">1%"]
6
+ }
7
+ }]
8
+ ],
9
+ "plugins": []
10
+ }
@@ -0,0 +1,42 @@
1
+ Disco Dancing with XMPP
2
+
3
+ There are many things one can do via XMPP. The list is
4
+ endlist. But one thing that some forget about is discovering
5
+ services a XMPP entity or server provides. In most cases a human or
6
+ user does not care about this information and should not care. But
7
+ you may have a website or web application that needs this
8
+ information in order to decide what options to show to your
9
+ users. You can do this very easily with JQuery, Strophe, and
10
+ Punjab.
11
+
12
+ We start with Punjab or a BOSH connection manager. This is
13
+ needed so we can connect to a XMPP server. First, lets download
14
+ punjab.
15
+
16
+ svn co https://code.stanziq.com/svn/punjab/trunk punjab
17
+
18
+ After we have punjab go into the directory and install punjab.
19
+
20
+ cd punjab
21
+ python setup.py install
22
+
23
+ Then create a .tac file to configure Punjab.
24
+
25
+ See punjab.tac
26
+
27
+ Next, we will need Strophe. Lets download thelatest version from
28
+ svn too.
29
+
30
+ cd /directory/where/you/configured/punjab/html
31
+
32
+ svn co https://code.stanziq.com/svn/strophe/trunk/strophejs
33
+
34
+ In your html directory you will then begin to create your disco browser.
35
+
36
+ Version 1 we take the basic example and modify it to do disco.
37
+
38
+ Version 2 we add anonymous login
39
+
40
+ Version 3 we make it pretty
41
+
42
+ Version 4 we add handlers for different services
@@ -0,0 +1,16 @@
1
+ #login .leftinput
2
+ {
3
+ margin-bottom: .5em;
4
+ }
5
+
6
+ #login input
7
+ {
8
+ margin-bottom: 10px;
9
+ }
10
+
11
+ #log {
12
+ width: 100%;
13
+ height: 200px;
14
+ overflow: auto;
15
+
16
+ }
@@ -0,0 +1,47 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <title>XMPP Disco Dancing</title>
5
+ <script language='javascript'
6
+ type='text/javascript'
7
+ src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'></script>
8
+ <script language='javascript'
9
+ type='text/javascript'
10
+ src='strophejs/b64.js'></script>
11
+ <script language='javascript'
12
+ type='text/javascript'
13
+ src='strophejs/md5.js'></script>
14
+ <script language='javascript'
15
+ type='text/javascript'
16
+ src='strophejs/sha1.js'></script>
17
+ <script language='javascript'
18
+ type='text/javascript'
19
+ src='strophejs/strophe.js'></script>
20
+ <script language='javascript'
21
+ type='text/javascript'
22
+ src='scripts/basic.js'></script>
23
+ <script language='javascript'
24
+ type='text/javascript'
25
+ src='scripts/disco.js'></script>
26
+ <link rel="stylesheet" href="css/disco.css" type="text/css" />
27
+ </head>
28
+ <body>
29
+ <div id='login' style='text-align: center'>
30
+ <form id='cred' name='cred'>
31
+ <label for='jid'>JID:</label>
32
+ <input type='text' class='leftinput' id='jid' />
33
+ <label for='pass'>Password:</label>
34
+ <input type='password' class='leftinput' id='pass' />
35
+ <input type='submit' id='connect' value='connect' />
36
+ </form>
37
+ <br/>
38
+ </div>
39
+ <hr />
40
+ <div id='disco'>
41
+ </div>
42
+ <hr />
43
+ <div id='log_container'>
44
+ <a href='#'>Status Log :</a>
45
+ <div id='log'></div></div>
46
+ </body>
47
+ </html>
@@ -0,0 +1,18 @@
1
+ # punjab tac file
2
+ from twisted.web import server, resource, static
3
+ from twisted.application import service, internet
4
+
5
+ from punjab.httpb import Httpb, HttpbService
6
+
7
+ root = static.File("./") # This needs to be the directory
8
+ # where you will have your html
9
+ # and javascript.
10
+
11
+ b = resource.IResource(HttpbService(1)) # turn on debug with 1
12
+ root.putChild('bosh', b)
13
+
14
+
15
+ site = server.Site(root)
16
+
17
+ application = service.Application("punjab")
18
+ internet.TCPServer(5280, site).setServiceParent(application)
@@ -0,0 +1,102 @@
1
+ var BOSH_SERVICE = 'http://localhost:5280/bosh';
2
+
3
+ var connection = null;
4
+ var browser = null;
5
+ var show_log = true;
6
+
7
+ function log(msg)
8
+ {
9
+ $('#log').append('<div></div>').append(document.createTextNode(msg));
10
+ }
11
+
12
+
13
+ function rawInput(data)
14
+ {
15
+ log('RECV: ' + data);
16
+ }
17
+
18
+ function rawOutput(data)
19
+ {
20
+ log('SENT: ' + data);
21
+ }
22
+
23
+ function onConnect(status)
24
+ {
25
+ if (status == Strophe.Status.CONNECTING) {
26
+ log('Strophe is connecting.');
27
+
28
+ } else if (status == Strophe.Status.CONNFAIL) {
29
+ log('Strophe failed to connect.');
30
+ showConnect();
31
+ } else if (status == Strophe.Status.DISCONNECTING) {
32
+ log('Strophe is disconnecting.');
33
+ } else if (status == Strophe.Status.DISCONNECTED) {
34
+ log('Strophe is disconnected.');
35
+ showConnect();
36
+
37
+ } else if (status == Strophe.Status.CONNECTED) {
38
+ log('Strophe is connected.');
39
+ // Start up disco browser
40
+ browser.showBrowser();
41
+ }
42
+ }
43
+
44
+ function showConnect()
45
+ {
46
+ var jid = $('#jid');
47
+ var pass = $('#pass');
48
+ var button = $('#connect').get(0);
49
+
50
+ browser.closeBrowser();
51
+
52
+ $('label').show();
53
+ jid.show();
54
+ pass.show();
55
+ $('#anon').show();
56
+ button.value = 'connect';
57
+ return false;
58
+ }
59
+
60
+ function showDisconnect()
61
+ {
62
+ var jid = $('#jid');
63
+ var pass = $('#pass');
64
+ var button = $('#connect').get(0);
65
+
66
+ button.value = 'disconnect';
67
+ pass.hide();
68
+ jid.hide();
69
+ $('label').hide();
70
+ $('#anon').hide();
71
+ return false;
72
+ }
73
+
74
+ $(document).ready(function () {
75
+ connection = new Strophe.Connection(BOSH_SERVICE);
76
+ connection.rawInput = rawInput;
77
+ connection.rawOutput = rawOutput;
78
+
79
+ browser = new Disco();
80
+
81
+ $("#log_container").bind('click', function () {
82
+ $("#log").toggle();
83
+ }
84
+ );
85
+
86
+ $('#cred').bind('submit', function () {
87
+ var button = $('#connect').get(0);
88
+ var jid = $('#jid');
89
+ var pass = $('#pass');
90
+
91
+ if (button.value == 'connect') {
92
+ showDisconnect();
93
+ connection.connect(jid.get(0).value,
94
+ pass.get(0).value,
95
+ onConnect);
96
+ } else {
97
+ connection.disconnect();
98
+ showConnect();
99
+ }
100
+ return false;
101
+ });
102
+ });
@@ -0,0 +1,60 @@
1
+
2
+ var NS_DISCO_INFO = 'http://jabber.org/protocol/disco#info';
3
+ var NS_DISCO_ITEM = 'http://jabber.org/protocol/disco#items';
4
+
5
+
6
+ // Disco stuff
7
+ Disco = function () {
8
+ // Class that does nothing
9
+ };
10
+
11
+ Disco.prototype = {
12
+ showBrowser: function() {
13
+ // Browser Display
14
+ var disco = $('#disco');
15
+ var jid = $('#jid');
16
+ var server = connection.jid.split('@')[1];
17
+
18
+ // display input box
19
+ disco.append("<div id='server'><form id='browse' name='browse'>Server : <input type='text' name='server' id='server' value='"+server+"' /><input type='submit' value='browse'/></form></div>");
20
+
21
+ // add handler for search form
22
+ $("#browse").bind('submit', function () {
23
+ this.startBrowse($("#server").get(0).value);
24
+ return false;
25
+ });
26
+
27
+ this.startBrowse(server);
28
+ },
29
+
30
+ closeBrowser: function() {
31
+ var disco = $('#disco');
32
+
33
+ disco.empty();
34
+ },
35
+
36
+ startBrowse: function(server) {
37
+ // build iq request
38
+ var id = 'startBrowse';
39
+
40
+ var discoiq = $iq({'from':connection.jid+"/"+connection.resource,
41
+ 'to':server,
42
+ 'id':id,
43
+ 'type':'get'}
44
+ )
45
+ .c('query', {'xmlns': NS_DISCO_INFO});
46
+
47
+ connection.addHandler(this._cbBrowse, null, 'iq', 'result', id);
48
+ connection.send(discoiq.tree());
49
+
50
+ },
51
+
52
+ _cbBrowse: function(e) {
53
+ var elem = $(e); // make this Element a JQuery Element
54
+ alert(e);
55
+
56
+ return false; // return false to remove the handler
57
+ },
58
+
59
+ };
60
+