Changed the purpose of the repo

Changed from k4li -> currency project
This commit is contained in:
Yamozha
2021-02-03 17:28:43 +02:00
parent c0b4a23c06
commit 1f543cae6f
11 changed files with 91 additions and 262 deletions

View File

@ -0,0 +1,16 @@
function currencyTicker(){
var ws = new WebSocket("ws://localhost:8765/");
ws.onopen = function(){
console.log("Connection is Established");
ws.send("STATUSONCOIN");
};
ws.onmessage = function(evt) {
var received_msg = evt.data;
w = document.getElementById("odometer").innerHTML = received_msg;
};
}
currencyTicker()
var t=setInterval(currencyTicker,5000);