From 577c514ba283b28f1fd1a7d32bb6ef2fb7824a93 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 22 Feb 2017 04:59:47 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/peer.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ui (gen4)/features/peer.js b/ui (gen4)/features/peer.js index 8e489b5f..e881a47e 100755 --- a/ui (gen4)/features/peer.js +++ b/ui (gen4)/features/peer.js @@ -61,15 +61,23 @@ var PeerActions = actions.Actions({ function(name){ return !!this.getActionAttr(name, '__peer__') }], + // + // The overloading action should connect on the pre-stage... + // + // XXX should this be sync or async??? // XXX this should create or connect to a peer depending on protocol... + // XXX the events should get called on the peer too -- who is + // responsible for this??? peerConnect: ['- Peer/', function(id, options){ - // XXX + id in this.__peers + && this.peerConnected(id) return id }], peerDisconnect: ['- Peer/', function(id){ - // XXX + !(id in this.__peers) + && this.peerDisconnected(id) }], // event...