pusher_client_ego 1.0.0+6
pusher_client_ego: ^1.0.0+6 copied to clipboard
A lightweight Flutter client for Pusher Channels, supporting public, private, and presence channels with real-time event binding and client event triggering — inspired by the official pusher-js library.
Changelog #
All notable changes to this project will be documented in this file.
1.0.0+2 - 2025-07-29 #
Added #
- Update bind method to have error callback and if eventName is null it will bind to all events.
1.0.0+6 - 2025-10-12 #
Added #
- Multiple event binding: Support for binding multiple callbacks to the same channel.
unbind()method: Remove specific callbacks or all callbacks for an event.close()method: Properly unsubscribe and cleanup channels with subscription cancellation and binding cleanup.- Error callback support: Optional error handling in
bind()method.
Changed #
- Improved bind mechanism: Refactored to use
_eventBindingsmap for better callback management. - Stream subscription optimization: Reuse single stream subscription per channel instead of creating new ones.
- Named parameters: Updated
bind()to use named parameters (eventName,success,error) for better clarity.
Fixed #
- Memory leaks: Properly clear event bindings and cancel subscriptions on
close(). - Null safety: Set
_subscriptionto null after cancellation to prevent reuse.