mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-25 06:40:58 -04:00
Trigger /peer/attempt_conection
This commit is contained in:
parent
12b642cc84
commit
f57e3327f0
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue