public bool AddListener(SubscribeCallback listener) { if (listenerManager == null) { listenerManager = new EndPoint.ListenerManager(pubnubConfig, jsonPluggableLibrary, pubnubUnitTest, pubnubLog, null); listenerManager.CurrentPubnubInstance(this); } return(listenerManager.AddListener(listener)); }
public void RemoveListener(SubscribeCallback listener) { EndPoint.ListenerManager listenerManager = new EndPoint.ListenerManager(pubnubConfig, jsonPluggableLibrary, pubnubUnitTest); listenerManager.CurrentPubnubInstance(this); listenerManager.RemoveListener(listener); }