flutter_socket_provider 1.0.0 copy "flutter_socket_provider: ^1.0.0" to clipboard
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

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
0
likes
130
points
231
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for WebSocket communication with automatic reconnection, multi-channel support, and server status tracking. Supports both Socket.IO and native WebSocket implementations.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, flutter_models_provider, socket_io_client, web_socket_channel

More

Packages that depend on flutter_socket_provider