Closed marcus-j-davies closed 2 years ago
self.bootstrapObject
self.protectSharedWS
registerInterest
degisterInterest
unifi-protect
unifi-protect will call into
const I: Interest = { deviceId: this.config.cameraId, callback: handleUpdate, }
self.accessControllerNode.protectSharedWS?.registerInterest(self.id, I)
self.accessControllerNode.protectSharedWS?.degisterInterest(self.id)
accoridngly
self.bootstrapObject
self.protectSharedWS
This has 2 important methodsregisterInterest
degisterInterest
unifi-protect
- that allows controlling and listening for camera eventsunifi-protect
will call intoself.accessControllerNode.protectSharedWS?.registerInterest(self.id, I)
self.accessControllerNode.protectSharedWS?.degisterInterest(self.id)
accoridngly