phoenix_channel 1.0.2 copy "phoenix_channel: ^1.0.2" to clipboard
phoenix_channel: ^1.0.2 copied to clipboard

A Flutter package for connecting to Phoenix Channels via WebSocket

1.0.2 07-06-2026 #

Added #

  • Custom Phoenix serializer support for JSON, MessagePack, and other transport formats.
  • Push timeouts with configurable socket defaults and per-push overrides.
  • Channel lifecycle handling for phx_error and phx_close.
  • Automatic channel rejoin after reconnects and channel errors.
  • Phoenix Presence helper for presence_state and presence_diff events.
  • Socket open/close hooks and unique reference generation.

Fixed #

  • Pass configured headers to the WebSocket connection.
  • Make channel event unsubscription remove the registered socket listener.
  • Support non-map payloads for Phoenix-compatible serializers.
  • Handle duplicate channel subscriptions locally.

1.0.1 11-23-2025 #

Added #

  • Initial release of phoenix_channel package
  • WebSocket connection management with Socket class
  • Channel join/leave functionality with Channel class
  • Automatic heartbeat mechanism to maintain connection
  • Message reference tracking for reliable message delivery
  • Event-based API with callbacks for socket and channel state changes
  • Automatic reconnection support with configurable retry attempts
  • Type-safe message handling following Phoenix Channels V2 protocol
  • Support for custom connection parameters and headers
  • Callback system for socket state changes, errors, and messages
  • Channel event listeners for custom events
  • Support for channel join/leave callbacks
4
likes
150
points
102
downloads

Documentation

API reference

Publisher

verified publisherizeesoft.com

Weekly Downloads

A Flutter package for connecting to Phoenix Channels via WebSocket

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, web_socket_client

More

Packages that depend on phoenix_channel