flutter_socket_provider 1.0.0
flutter_socket_provider: ^1.0.0 copied to clipboard
A Flutter package for WebSocket communication with automatic reconnection, multi-channel support, and server status tracking. Supports both Socket.IO and native WebSocket implementations.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.0 2024 #
Added #
-
Initial stable release
-
Socket.IO Implementation (
FlutterSocketProvider+SocketDataProvider)- Automatic reconnection with event rejoining
- Multi-endpoint support with independent socket management
- Multi-channel support per endpoint
- Dynamic channel switching based on server responses
- Real-time server status tracking (connecting, online, offline, failed, reconnecting)
- Debug mode for detailed logging
-
WebSocket Channel Implementation (
FlutterWSocketProvider+WSocketDataProvider)- Native WebSocket (RFC 6455) support via
web_socket_channel - Intelligent reconnection with exponential backoff
- Token-based authentication via query parameters
- Real-time connection status management
- Multi-endpoint and multi-channel support
- Native WebSocket (RFC 6455) support via
Features #
- Singleton pattern for consistent state management
- ChangeNotifier-based reactive updates
- JSON message parsing for both String and Map formats
- Comprehensive error handling with debug logging