Add OnDisconnecting service callback (#767)

Add OnDisconnecting service callback for mobile
This commit is contained in:
Zoltan Papp
2023-03-29 10:39:54 +02:00
committed by GitHub
parent 488d338ce8
commit 8ebd6ce963
4 changed files with 23 additions and 1 deletions
+5
View File
@@ -288,6 +288,11 @@ func (d *Status) ClientStop() {
d.notifier.clientStop()
}
// ClientTeardown will notify all listeners about the service is under teardown
func (d *Status) ClientTeardown() {
d.notifier.clientTearDown()
}
// AddConnectionListener add a listener to the notifier
func (d *Status) AddConnectionListener(listener Listener) {
d.notifier.addListener(listener)