Trigger /peer/attempt_conection

This commit is contained in:
Angela Mazzurco 2017-07-24 17:38:30 +02:00
parent 12b642cc84
commit f57e3327f0

View File

@ -32,6 +32,11 @@ Item
property var locations property var locations
function attemptConnectionCB (par)
{
console.log("attemptConnectionCB()", par.response)
}
Image Image
{ {
@ -119,6 +124,9 @@ Item
onClicked: onClicked:
{ {
console.log("triggerLocationConnectionAttempt()") console.log("triggerLocationConnectionAttempt()")
rsApi.request("/peers/attempt_connection/",
JSON.stringify({peer_id: model.peer_id}) , attemptConnectionCB)
} }
Column Column