local_first_websocket 0.3.0
local_first_websocket: ^0.3.0 copied to clipboard
WebSocket sync strategy for local_first: real-time bidirectional synchronization with automatic reconnection.
0.3.0 #
- Added configurable logger system via
LocalFirstLoggerwith adjustable log levels. - Fixed event field name alignment with server convention (
_prefix metadata keys). - Improved test coverage to 100%.
- Updated documentation with architecture diagram.
0.2.0 #
- Fixed authentication flow in test suite
- Improved test reliability by properly simulating server auth_success responses
- Enhanced test coverage for connection and reconnection scenarios
- Updated call count expectations to match actual authentication behavior
- All 123 tests now passing with improved stability
- Enhanced API documentation with comprehensive examples and usage guides
- Added library-level documentation with WebSocket protocol specification
- Improved documentation for all public classes and methods
0.1.0 #
- Initial release
- WebSocket-based real-time synchronization strategy
- Bidirectional sync (push and pull)
- Automatic reconnection on connection loss
- Heartbeat/ping-pong for connection health monitoring
- Queue for pending events during disconnection
- Example app with WebSocket server implementation
- Dynamic authentication credential updates:
updateAuthToken()- Update authentication tokenupdateHeaders()- Update custom headersupdateCredentials()- Update both token and headers
- Automatic re-authentication when credentials are updated during active connection
- Read-only getters for
authTokenandheaders - Removed all force unwrap operators (!) for safer null handling