OpenTok-Angular
OpenTok-Angular copied to clipboard
subscriber.on should be called within subscribe callback
Since subscirbe() is asynchronous subscriber.on fails sometimes with subscriber being null. I noticed it happening when closing a call going to a different state than starting a new call.