diff --git a/src/index.tsx b/src/index.tsx index 5c04965..fd688bd 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -312,6 +312,12 @@ export class Pusher { this.pusherEventEmitter.removeAllListeners( PusherEventName.ON_MEMBER_REMOVED ); + this.pusherEventEmitter.removeAllListeners( + PusherEventName.ON_CONNECTION_STATE_CHANGE + ); + this.pusherEventEmitter.removeAllListeners( + PusherEventName.ON_SUBSCRIPTION_ERROR + ); } public async reset() {