Greetings,
In the code below will session.disconnect() cleanup the bound events, both streamDestroyed and the signal:startSession or does this have to be handled manually by calling session.off() for each event?
Using v2.20.0
session.on('streamDestroyed', () => { ... });
session.on('signal:startSession', () => { ... });
session.disconnect();
It appears as though disconnect will handle cleanup of bound events, based on the documentation not cleaning them up, but I am unsure.
Sorry if this has been asked before, but I cannot find a clear answer in the documentation or within these forums.
Thanks in advance.