phoenix_channel 1.0.2
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_errorandphx_close. - Automatic channel rejoin after reconnects and channel errors.
- Phoenix Presence helper for
presence_stateandpresence_diffevents. - 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
Socketclass - Channel join/leave functionality with
Channelclass - 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