local_first_websocket 0.3.0 copy "local_first_websocket: ^0.3.0" to clipboard
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 LocalFirstLogger with 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 token
    • updateHeaders() - Update custom headers
    • updateCredentials() - Update both token and headers
  • Automatic re-authentication when credentials are updated during active connection
  • Read-only getters for authToken and headers
  • Removed all force unwrap operators (!) for safer null handling
0
likes
160
points
99
downloads

Documentation

API reference

Publisher

verified publishercarda.me

Weekly Downloads

WebSocket sync strategy for local_first: real-time bidirectional synchronization with automatic reconnection.

Repository (GitHub)
View/report issues
Contributing

Topics

#local-first #websocket #real-time #sync

License

MIT (license)

Dependencies

flutter, local_first, web_socket_channel

More

Packages that depend on local_first_websocket