mirror of
https://github.com/foss42/apidash.git
synced 2025-12-04 03:46:57 +08:00
Update Application_K_Govind_API_Support.md
This commit is contained in:
@@ -69,47 +69,51 @@ The solution involves providing the users with an option to change ping interval
|
|||||||
I have tested my approach on custom endpoints https://github.com/Clasherzz/testing/blob/main/websock.js , echo websocket and multiple fast incoming web socket message endpoints related to bit coin and stock prices to ensure robustness.
|
I have tested my approach on custom endpoints https://github.com/Clasherzz/testing/blob/main/websock.js , echo websocket and multiple fast incoming web socket message endpoints related to bit coin and stock prices to ensure robustness.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
+--------------------------------+
|
||||||
+-------------------------+
|
|
||||||
| WebSocket Server |
|
| WebSocket Server |
|
||||||
| - Manages connections |
|
| - Manages connections |
|
||||||
| - Handles messages |
|
| - Handles messages |
|
||||||
+-----------+-------------+
|
+---------------+--------------+
|
||||||
|
|
|
|
||||||
v
|
v
|
||||||
+------------------------------------+
|
+--------------------------------------+
|
||||||
|
| Settings Connection Manager |
|
||||||
|
| - Ping interval handling |
|
||||||
|
| - Reconnection attempts |
|
||||||
|
| - Interval between retries |
|
||||||
|
+----------------+-------------------+
|
||||||
|
|
|
||||||
|
v
|
||||||
|
+---------------------------------------------------------------+
|
||||||
| WebSocket Client (web_socket_channel) |
|
| WebSocket Client (web_socket_channel) |
|
||||||
| - Establishes connection |
|
| - Establishes connection |
|
||||||
| - Sends & receives messages |
|
| - Sends & receives messages |
|
||||||
| - Handles ping & retries |
|
| - Handles ping & retries |
|
||||||
| - onError → Update Riverpod state |
|
| - onError → Updates Riverpod WebSocket Response Model State |
|
||||||
| - onDone → Update Riverpod state |
|
| - onListen → Updates WebSocket Messages Provider |
|
||||||
|
| - onDone → Updates Riverpod WebSocket Response Model State |
|
||||||
|
+----------------------+----------------------+----------------+
|
||||||
|
| |
|
||||||
|
| |
|
||||||
|
+------------------------------------+ +--------------------------------+
|
||||||
|
| WebSocket Messages Riverpod | | Riverpod State Management |
|
||||||
|
| Provider | | - Stores all messages |
|
||||||
|
| - Stores incoming messages | | - Updates WebSocket Model |
|
||||||
|
| - Groups messages by request ID | | - Handles UI reactivity |
|
||||||
|
| - Provides real-time updates | +--------------------------------+
|
||||||
+------------------------------------+
|
+------------------------------------+
|
||||||
|
|
|
|
||||||
v
|
v
|
||||||
+-------------------------------+
|
+-----------------------------------------+
|
||||||
| WebSocket Connection Manager |
|
|
||||||
| - Ping interval handling |
|
|
||||||
| - Reconnection attempts |
|
|
||||||
| - Interval between retries |
|
|
||||||
+-------------------------------+
|
|
||||||
|
|
|
||||||
v
|
|
||||||
+-----------------------------+
|
|
||||||
| Riverpod State Management |
|
|
||||||
| - Stores all messages |
|
|
||||||
| - Updates WebSocket Model |
|
|
||||||
| - Handles UI reactivity |
|
|
||||||
+-----------------------------+
|
|
||||||
|
|
|
||||||
v
|
|
||||||
+--------------------------------+
|
|
||||||
| Flutter WebSocket UI |
|
| Flutter WebSocket UI |
|
||||||
| - Search messages |
|
| - Search messages |
|
||||||
| - Clear all/one message |
|
| - Clear all/one message |
|
||||||
| - Scroll to top/up option |
|
| - Scroll to top/up option |
|
||||||
| - Dynamic UI per request |
|
| - Dynamic UI per request |
|
||||||
+--------------------------------+
|
+-----------------------------------------+
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user