djangoflow_websocket 0.1.0+6 copy "djangoflow_websocket: ^0.1.0+6" to clipboard
djangoflow_websocket: ^0.1.0+6 copied to clipboard

Easily manage connecting to a WebSocket server, subscribing to messages, handling reconnections etc all at once with djangoflow_websocket

0.1.0+6 #

  • REFACTOR: update generated files. (b057a275)

0.1.0+5 #

  • REFACTOR: format the codebase. (fc078388)
  • REFACTOR: resolve linter warnings. (9ab6b6e5)

0.1.0+4 #

  • REFACTOR: use latest dependency. (7ffec4dc)
  • REFACTOR: upgrade to flutter_lint 3.0.1. (ebfc2663)

0.1.0+3 #

  • Update a dependency to the latest release.

0.1.0+2 #

  • REFACTOR(websocket): remove CubitMaybeEmit in favor of SafeEmitMixin. (289b5e8b)

0.1.0+1 #

  • REFACTOR(websocket): move all files under src folder. (837c697d)
  • REFACTOR(websocket): delete .iml file. (f41470d0)
  • REFACTOR(websocket): add interface and config to make it more flexible. (3589b916)
  • FIX(websocket): fix wrong generated constructor name. (931e10fb)
  • DOCS(websocket): update CHANGELOG. (f47278cc)
  • DOCS(websocket): update README. (a47975b5)

0.1.0 #

  • Updated Dart SDK constraints for dart 3
  • Added DjangoflowWebsocketCubitBase interface and now DjangoflowWebsocketCubit extends from it. And multiple cubit can be created for different Uri or websocket clients.
  • Added DjangoflowWebsocketConfig for more flexibility
  • Restrucutered file organization

0.0.1 #

We are excited to announce the initial release of djangoflow_websocket!

Features

  • WebSocket Connection Management: The DjangoflowWebsocketCubit class provides a convenient way to establish and manage WebSocket connections to a server. It handles connection establishment, closure, and automatic reconnection in case of connection loss.

  • Connection State Monitoring: The DjangoflowWebsocketCubit emits DjangoflowWebsocketState objects, allowing you to monitor the connection state. This includes messages such as "Connecting," "Connected," and "Disconnected," providing real-time feedback on the connection status.

  • Message Handling: The DjangoflowWebsocketCubit class receives WebSocket messages and emits them as part of the DjangoflowWebsocketState. You can easily handle and process these messages in your application logic.

  • Bloc Listener for Message Notifications: The DjangoflowWebsocketBlocListener simplifies the process of listening to new WebSocket messages emitted by the DjangoflowWebsocketCubit. It executes a callback whenever a new message is received, making it easier to handle messages in the UI.

1
likes
130
pub points
41%
popularity

Publisher

verified publisherapexive.com

Easily manage connecting to a WebSocket server, subscribing to messages, handling reconnections etc all at once with djangoflow_websocket

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

bloc, djangoflow_bloc_extensions, flutter, flutter_bloc, freezed_annotation, web_socket_channel

More

Packages that depend on djangoflow_websocket