started adding the back to front api via websocket and json
This commit is contained in:
@@ -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))
|
||||
};
|
Reference in New Issue
Block a user