pusher_client_ego 1.0.0+6 copy "pusher_client_ego: ^1.0.0+6" to clipboard
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+1 - 2025-07-29 #

Added #

  • Initial release of pusher_client_ego.
  • Basic integration with Pusher.

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+3 - 2025-07-29 #

Added #

  • Replace http to Dio package.

1.0.0+4 - 2025-08-06 #

Added #

  • Update disconnect methods.

1.0.0+5 - 2025-08-06 #

Updated #

  • Update disconnect methods.

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 _eventBindings map 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 _subscription to null after cancellation to prevent reuse.
0
likes
130
points
2
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dio, flutter

More

Packages that depend on pusher_client_ego