Closed Stefdv closed 7 years ago
might be related to https://github.com/amark/gun/issues/180
I still believe that what is discussed in https://github.com/amark/gun/issues/180 is the "right way" to deal with it.
I closed that issue, so I'm gonna close this issue too. However I'm still open to discussion on it, so please just reopen this issue if it is important for you. :) You've been so helpful with everything, so I really do appreciate/respect your input.
It would be helpfull if there was a event we can hook into when a peer is connected or disconnected . usecase:
gun.get('servers').path('serverX').put('on')
I made a 'monkey-patch' inside the gun.js file for my specific project. gun.js: