Browse Source

experimental sockets code

master
Petr Balashov 8 years ago
parent
commit
c1cae60026
  1. 8201
      assets/global/vendor/socket.io.js
  2. 5
      assets/scripts/kmd_wallet_dashboard.js
  3. 8
      index.html

8201
assets/global/vendor/socket.io.js

File diff suppressed because it is too large

5
assets/scripts/kmd_wallet_dashboard.js

@ -1,7 +1,6 @@
var KMDWalletDashboard = function() {
var handle_KMD_Dashboard = function() {
var action_btn_code = getHeaderActionMenuButtonCoinCode();
var action_btn_code = getHeaderActionMenuButtonCoinCode();
$('#btn_' + action_btn_code + '_wallet_dashboard').click(function() {
console.log('kmd wallet dashbaord button clicked...');
console.log($(this).data());
@ -416,7 +415,7 @@ function RunKMDInitFunctions() {
console.log(error);
}
});
}, 5000);
}, 30000);
}
getRemoteCurrentHeight();

8
index.html

@ -2043,6 +2043,7 @@
<script src="assets/global/vendor/underscore-js/underscore-min.js"></script>
<script src="assets/global/vendor/javascript-md5/md5.min.js"></script>
<script src="assets/global/vendor/bluebird/bluebird.min.js"></script>
<script src="assets/global/vendor/socket.io.js"></script>
<!-- Crypto Dependencies -->
<script src="assets/scripts/wordlist.js" type="text/javascript"></script>
<script src="assets/scripts/passphrasegenerator.js" type="text/javascript"></script>
@ -2087,6 +2088,13 @@
var Site = window.Site;
$(document).ready(function() {
Site.run();
var socket = io.connect('http://localhost:17777');
socket.on('connect', function(data) {
socket.emit('join', 'EDEX GUI joined');
});
socket.on('messages', function(data) {
console.log(data);
});
});
})(document, window, jQuery);
</script>

Loading…
Cancel
Save