Permalink
Browse files

upgraded socket.io to 3.4 plus added fixes to javascript 3.4 with bug…

…s on minified version.
  • Loading branch information...
1 parent 2055a41 commit 50e1fe7d6f9d02a64df92af20d118d9c17f46de9 @stephenlb stephenlb committed Dec 15, 2012
Showing with 3,970 additions and 42 deletions.
  1. +10 −7 javascript/3.4/pubnub-3.4.js
  2. +6 −6 javascript/3.4/pubnub-3.4.min.js
  3. BIN javascript/3.4/pubnub-3.4.min.js.gz
  4. +3 −1 javascript/build-minify-pubnub
  5. +7 −7 javascript/pubnub-3.4.js
  6. +23 −21 javascript/pubnub-3.4.min.js
  7. BIN javascript/pubnub-3.4.min.js.gz
  8. +40 −0 socket.io/3.4/acknowledgements/app.js
  9. +21 −0 socket.io/3.4/acknowledgements/index.html
  10. +4 −0 socket.io/3.4/acknowledgements/styles.css
  11. +35 −0 socket.io/3.4/bootstrap-mobile/app.js
  12. BIN socket.io/3.4/bootstrap-mobile/icon.png
  13. +34 −0 socket.io/3.4/bootstrap-mobile/index.html
  14. BIN socket.io/3.4/bootstrap-mobile/startup.png
  15. +4 −0 socket.io/3.4/bootstrap-mobile/styles.css
  16. +35 −0 socket.io/3.4/bootstrap-web/app.js
  17. +21 −0 socket.io/3.4/bootstrap-web/index.html
  18. +4 −0 socket.io/3.4/bootstrap-web/styles.css
  19. +6 −0 socket.io/3.4/build
  20. +42 −0 socket.io/3.4/crypto.js
  21. +49 −0 socket.io/3.4/custom-presence/app.js
  22. +21 −0 socket.io/3.4/custom-presence/index.html
  23. +4 −0 socket.io/3.4/custom-presence/styles.css
  24. +40 −0 socket.io/3.4/encryption/app.js
  25. +21 −0 socket.io/3.4/encryption/index.html
  26. +4 −0 socket.io/3.4/encryption/styles.css
  27. +36 −0 socket.io/3.4/hello-world/app.js
  28. +21 −0 socket.io/3.4/hello-world/index.html
  29. +4 −0 socket.io/3.4/hello-world/styles.css
  30. +38 −0 socket.io/3.4/here_now/app.js
  31. +25 −0 socket.io/3.4/here_now/index.html
  32. +4 −0 socket.io/3.4/here_now/styles.css
  33. +51 −0 socket.io/3.4/history/app.js
  34. +25 −0 socket.io/3.4/history/index.html
  35. +4 −0 socket.io/3.4/history/styles.css
  36. +35 −0 socket.io/3.4/multiplexing/app.js
  37. +21 −0 socket.io/3.4/multiplexing/index.html
  38. +4 −0 socket.io/3.4/multiplexing/styles.css
  39. +29 −0 socket.io/3.4/non-socket-io-communication/README.md
  40. +30 −0 socket.io/3.4/non-socket-io-communication/app.js
  41. BIN socket.io/3.4/non-socket-io-communication/icon.png
  42. +48 −0 socket.io/3.4/non-socket-io-communication/index.html
  43. BIN socket.io/3.4/non-socket-io-communication/startup.png
  44. +4 −0 socket.io/3.4/non-socket-io-communication/styles.css
  45. +38 −0 socket.io/3.4/presence/app.js
  46. +23 −0 socket.io/3.4/presence/index.html
  47. +4 −0 socket.io/3.4/presence/styles.css
  48. +60 −0 socket.io/3.4/public-private-communication/public-private-communication.html
  49. +142 −0 socket.io/3.4/public-private-communication/public-private-communication.js
  50. +92 −0 socket.io/3.4/simple-button/app.js
  51. BIN socket.io/3.4/simple-button/icon.png
  52. +49 −0 socket.io/3.4/simple-button/index.html
  53. BIN socket.io/3.4/simple-button/notify.mp3
  54. BIN socket.io/3.4/simple-button/notify.ogg
  55. BIN socket.io/3.4/simple-button/startup.png
  56. +146 −0 socket.io/3.4/simple-button/styles.css
  57. +290 −0 socket.io/3.4/socket.io.js
  58. +72 −0 socket.io/3.4/socket.io.min.js
  59. BIN socket.io/3.4/socket.io.min.js.gz
  60. +60 −0 socket.io/3.4/unit-test/unit-test.html
  61. +221 −0 socket.io/3.4/unit-test/unit-test.js
  62. +40 −0 socket.io/acknowledgements/app.js
  63. +26 −0 socket.io/acknowledgements/index.html
  64. +4 −0 socket.io/acknowledgements/styles.css
  65. +35 −0 socket.io/bootstrap-mobile/app.js
  66. BIN socket.io/bootstrap-mobile/icon.png
  67. +34 −0 socket.io/bootstrap-mobile/index.html
  68. BIN socket.io/bootstrap-mobile/startup.png
  69. +4 −0 socket.io/bootstrap-mobile/styles.css
  70. +35 −0 socket.io/bootstrap-web/app.js
  71. +21 −0 socket.io/bootstrap-web/index.html
  72. +4 −0 socket.io/bootstrap-web/styles.css
  73. +5 −0 socket.io/build
  74. +42 −0 socket.io/crypto.js
  75. +49 −0 socket.io/custom-presence/app.js
  76. +21 −0 socket.io/custom-presence/index.html
  77. +4 −0 socket.io/custom-presence/styles.css
  78. +40 −0 socket.io/encryption/app.js
  79. +21 −0 socket.io/encryption/index.html
  80. +4 −0 socket.io/encryption/styles.css
  81. +36 −0 socket.io/hello-world/app.js
  82. +21 −0 socket.io/hello-world/index.html
  83. +4 −0 socket.io/hello-world/styles.css
  84. +38 −0 socket.io/here_now/app.js
  85. +25 −0 socket.io/here_now/index.html
  86. +4 −0 socket.io/here_now/styles.css
  87. +51 −0 socket.io/history/app.js
  88. +25 −0 socket.io/history/index.html
  89. +4 −0 socket.io/history/styles.css
  90. +35 −0 socket.io/multiplexing/app.js
  91. +21 −0 socket.io/multiplexing/index.html
  92. +4 −0 socket.io/multiplexing/styles.css
  93. +29 −0 socket.io/non-socket-io-communication/README.md
  94. +30 −0 socket.io/non-socket-io-communication/app.js
  95. BIN socket.io/non-socket-io-communication/icon.png
  96. +48 −0 socket.io/non-socket-io-communication/index.html
  97. BIN socket.io/non-socket-io-communication/startup.png
  98. +4 −0 socket.io/non-socket-io-communication/styles.css
  99. +38 −0 socket.io/presence/app.js
  100. +23 −0 socket.io/presence/index.html
  101. +4 −0 socket.io/presence/styles.css
  102. +60 −0 socket.io/public-private-communication/public-private-communication.html
  103. +142 −0 socket.io/public-private-communication/public-private-communication.js
  104. +92 −0 socket.io/simple-button/app.js
  105. BIN socket.io/simple-button/icon.png
  106. +49 −0 socket.io/simple-button/index.html
  107. BIN socket.io/simple-button/notify.mp3
  108. BIN socket.io/simple-button/notify.ogg
  109. BIN socket.io/simple-button/startup.png
  110. +146 −0 socket.io/simple-button/styles.css
  111. +285 −0 socket.io/socket.io.js
  112. +72 −0 socket.io/socket.io.min.js
  113. BIN socket.io/socket.io.min.js.gz
  114. +60 −0 socket.io/unit-test/unit-test.html
  115. +221 −0 socket.io/unit-test/unit-test.js
@@ -695,18 +695,18 @@ var PDIV = $('pubnub') || {}
if (!presence) return;
// Subscribe Presence Channel
- SELF.subscribe({
- channel : channel + PRESENCE_SUFFIX,
- callback : presence
+ SELF['subscribe']({
+ 'channel' : channel + PRESENCE_SUFFIX,
+ 'callback' : presence
});
// Presence Subscribed?
if (settings.subscribed) return;
// See Who's Here Now
SELF['here_now']({
- channel : channel,
- callback : function(here) {
+ 'channel' : channel,
+ 'callback' : function(here) {
each( 'uuids' in here ? here['uuids'] : [],
function(uuid) { presence( {
'action' : 'join',
@@ -965,7 +965,10 @@ function FDomainRequest() {
}
FDomainRequest['id'] = SECOND;
-// For Testling.js - http://testling.com/
-typeof module !== 'undefined' && (module['exports'] = PUBNUB) && ready();
+// jQuery Interface
+window['jQuery'] && (window['jQuery']['PUBNUB'] = PUBNUB);
+
+// For Modern JS + Testling.js - http://testling.com/
+typeof(module) !== 'undefined' && (module['exports'] = PUBNUB) && ready();
})();

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Binary file not shown.
@@ -11,7 +11,9 @@ echo -e " USING: $googleminify TO MINIFY..."
echo -e " COMPILING PUBNUB JAVASCRIPT API..."
cat ./json.js ./pubnub-3.4.js > ./pubnub.tmp
-java -jar $googleminify --js=./pubnub.tmp --compilation_level=ADVANCED_OPTIMIZATIONS > ./pubnub-3.4.min.js
+echo "(function(){" > ./pubnub-3.4.min.js
+java -jar $googleminify --js=./pubnub.tmp --compilation_level=ADVANCED_OPTIMIZATIONS >> ./pubnub-3.4.min.js
+echo "})();" >> ./pubnub-3.4.min.js
echo -e " >>COMPRESSING<< PUBNUB JAVASCRIPT API..."
cat ./pubnub-3.4.min.js | gzip -c9 > ./pubnub-3.4.min.js.gz
View
@@ -695,18 +695,18 @@ var PDIV = $('pubnub') || {}
if (!presence) return;
// Subscribe Presence Channel
- SELF.subscribe({
- channel : channel + PRESENCE_SUFFIX,
- callback : presence
+ SELF['subscribe']({
+ 'channel' : channel + PRESENCE_SUFFIX,
+ 'callback' : presence
});
// Presence Subscribed?
if (settings.subscribed) return;
// See Who's Here Now
SELF['here_now']({
- channel : channel,
- callback : function(here) {
+ 'channel' : channel,
+ 'callback' : function(here) {
each( 'uuids' in here ? here['uuids'] : [],
function(uuid) { presence( {
'action' : 'join',
@@ -968,7 +968,7 @@ FDomainRequest['id'] = SECOND;
// jQuery Interface
window['jQuery'] && (window['jQuery']['PUBNUB'] = PUBNUB);
-// For Testling.js - http://testling.com/
-typeof module !== 'undefined' && (module.exports = PUBNUB) && ready();
+// For Modern JS + Testling.js - http://testling.com/
+typeof(module) !== 'undefined' && (module['exports'] = PUBNUB) && ready();
})();
Oops, something went wrong.

0 comments on commit 50e1fe7

Please sign in to comment.