djangoflow_websocket 0.1.0
djangoflow_websocket: ^0.1.0 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 #
- Updated Dart SDK constraints for dart 3
- Added
DjangoflowWebsocketCubitBaseinterface and nowDjangoflowWebsocketCubitextends from it. And multiple cubit can be created for differentUrior websocket clients. - Added
DjangoflowWebsocketConfigfor more flexibility - Restrucutered file organization
0.0.1 #
We are excited to announce the initial release of djangoflow_websocket!
Features
-
WebSocket Connection Management: The
DjangoflowWebsocketCubitclass 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
DjangoflowWebsocketCubitemitsDjangoflowWebsocketStateobjects, 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
DjangoflowWebsocketCubitclass receives WebSocket messages and emits them as part of theDjangoflowWebsocketState. You can easily handle and process these messages in your application logic. -
Bloc Listener for Message Notifications: The
DjangoflowWebsocketBlocListenersimplifies the process of listening to new WebSocket messages emitted by theDjangoflowWebsocketCubit. It executes a callback whenever a new message is received, making it easier to handle messages in the UI.