_disposeIfEmpty not trigger the onDispose callback
-
Hi all, I wonder how to do some logic when there is no clients in room. I trying to set the
autoDispose
of the room tofalse
but how do I dispose the room? And I call protected_disposeIfEmpty
but theonDispose
not triggered.
Update
Can I usethis.emit('dispose');
to dispose the room mannually?
-
This post is deleted!
-
Hi @amit-gshe, welcome!
Have you tried
this.emit('dispose')
? It should work as you expect!
-
@endel Thanks for your response. It works as I expect.