started adding the back to front api via websocket and json

This commit is contained in:
2017-12-24 10:42:12 -05:00
parent 2e1eb8e4e1
commit 8a5f7eaa09
37 changed files with 676 additions and 666 deletions

View File

@@ -1,7 +1,12 @@
var ws = new WebSocket("ws://192.168.1.141:8000/websocket"); //creating websocket
var kickStart = {
messageType: "torrentListRequest"
}
ws.onopen = function()
{
ws.send("clientUpdateRequest"); //sending out the first ping
console.log("Kicking off websocket to server on 192.168.1.141.....")
ws.send(JSON.stringify(kickStart)); //sending out the first ping
console.log("Kicking off websocket to server on 192.168.1.141.....", JSON.stringify(kickStart))
};