What event happen and what API can use?

i wouldn’t use BTSync ! i also support open source , i hope the syncthing change better ! in the future , if the syncthing still didn’t fit me , i will change it !

Which property decide the device is the master ?

Please try reading the replies you’re given…

BTSync had this till version 1.4. As of version 2, it is more or less the same as Syncthing (certificates; no keys for folders, but links which will let the client request access from the sharing device, Syncthing has this in the other direction).

yes , the syncthing do this on other direction , i understand this ! the syncthing let the device more safe ! now i have do accept auto , when the device receive the event “DeviceRejected”, the device will auto add the request device ! this can solve by self depend on self need !

When in doubt, take a look at what the GUI JavaScript code does. It’s fairly readable I think.

thanks every one !