djangoflow_websocket 0.1.0+6 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+4 #
0.1.0+3 #
- Update a dependency to the latest release.
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 nowDjangoflowWebsocketCubit
extends from it. And multiple cubit can be created for differentUri
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
emitsDjangoflowWebsocketState
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 theDjangoflowWebsocketState
. 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 theDjangoflowWebsocketCubit
. It executes a callback whenever a new message is received, making it easier to handle messages in the UI.