Commit 30dbe34
fix: add a hard sequence in SSE and WS requests (#6569)
* fix: sse sequence in ipc layer
* fix: remove tick rate and flushing
* fix: added sequence logic for websockets
* fix: added sequence logic for websockets per request based
* fix: correct the order for how the messages are added.
`WSMessagesList` already handles a lot of the ordering for us, don't modify the order the messages are added since redirect and connection are internal states, it changes the execution trail
* chore: reduce whitespace diffs
* fix: a possible null case exception
Though we always create an empty data buffer at source so shouldn't happen unless that is modified
* fix: implement sequence logic for WebSocket messages
* fix: remove unused sequenceState property from WsClient
* fix: update message sorting logic to handle missing sequence numbers
* fix: remove unused lodash import
* fix: add clean method to sequencer for better sequence management
* fix: don't show dropdown when streaming
---------
Co-authored-by: Sid <siddharth@usebruno.com>1 parent c83c055 commit 30dbe34
File tree
5 files changed
+86
-20
lines changed- packages
- bruno-app/src
- components/ResponsePane
- WsResponsePane/WSMessagesList
- providers/ReduxStore/slices/collections
- bruno-electron/src/ipc/network
- bruno-requests/src/ws
5 files changed
+86
-20
lines changedLines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
186 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
187 | 190 | | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
191 | | - | |
| 194 | + | |
192 | 195 | | |
193 | 196 | | |
194 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
Lines changed: 17 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
| 386 | + | |
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | | - | |
| 397 | + | |
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| |||
3118 | 3118 | | |
3119 | 3119 | | |
3120 | 3120 | | |
3121 | | - | |
| 3121 | + | |
3122 | 3122 | | |
3123 | 3123 | | |
3124 | 3124 | | |
| |||
3127 | 3127 | | |
3128 | 3128 | | |
3129 | 3129 | | |
| 3130 | + | |
3130 | 3131 | | |
3131 | 3132 | | |
3132 | | - | |
| 3133 | + | |
3133 | 3134 | | |
3134 | 3135 | | |
3135 | | - | |
| 3136 | + | |
| 3137 | + | |
| 3138 | + | |
| 3139 | + | |
3136 | 3140 | | |
3137 | 3141 | | |
3138 | 3142 | | |
| |||
3255 | 3259 | | |
3256 | 3260 | | |
3257 | 3261 | | |
3258 | | - | |
| 3262 | + | |
| 3263 | + | |
3259 | 3264 | | |
3260 | 3265 | | |
3261 | 3266 | | |
| |||
3271 | 3276 | | |
3272 | 3277 | | |
3273 | 3278 | | |
3274 | | - | |
| 3279 | + | |
| 3280 | + | |
3275 | 3281 | | |
3276 | 3282 | | |
3277 | 3283 | | |
| |||
3287 | 3293 | | |
3288 | 3294 | | |
3289 | 3295 | | |
3290 | | - | |
| 3296 | + | |
| 3297 | + | |
3291 | 3298 | | |
3292 | 3299 | | |
3293 | 3300 | | |
| |||
3302 | 3309 | | |
3303 | 3310 | | |
3304 | 3311 | | |
3305 | | - | |
| 3312 | + | |
| 3313 | + | |
3306 | 3314 | | |
3307 | 3315 | | |
3308 | 3316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1003 | 1003 | | |
1004 | 1004 | | |
1005 | 1005 | | |
| 1006 | + | |
1006 | 1007 | | |
1007 | 1008 | | |
1008 | 1009 | | |
| |||
1012 | 1013 | | |
1013 | 1014 | | |
1014 | 1015 | | |
| 1016 | + | |
| 1017 | + | |
1015 | 1018 | | |
1016 | | - | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
1017 | 1027 | | |
1018 | 1028 | | |
1019 | 1029 | | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
1023 | 1038 | | |
1024 | | - | |
1025 | 1039 | | |
1026 | 1040 | | |
1027 | 1041 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
52 | 82 | | |
53 | 83 | | |
54 | 84 | | |
| |||
181 | 211 | | |
182 | 212 | | |
183 | 213 | | |
| 214 | + | |
184 | 215 | | |
185 | 216 | | |
186 | 217 | | |
| |||
204 | 235 | | |
205 | 236 | | |
206 | 237 | | |
| 238 | + | |
207 | 239 | | |
208 | 240 | | |
209 | 241 | | |
| |||
283 | 315 | | |
284 | 316 | | |
285 | 317 | | |
286 | | - | |
| 318 | + | |
| 319 | + | |
287 | 320 | | |
288 | 321 | | |
289 | 322 | | |
| |||
294 | 327 | | |
295 | 328 | | |
296 | 329 | | |
297 | | - | |
| 330 | + | |
| 331 | + | |
298 | 332 | | |
299 | 333 | | |
300 | 334 | | |
301 | 335 | | |
302 | 336 | | |
303 | 337 | | |
304 | 338 | | |
| 339 | + | |
305 | 340 | | |
306 | 341 | | |
307 | 342 | | |
| |||
313 | 348 | | |
314 | 349 | | |
315 | 350 | | |
| 351 | + | |
316 | 352 | | |
317 | 353 | | |
318 | 354 | | |
| |||
321 | 357 | | |
322 | 358 | | |
323 | 359 | | |
| 360 | + | |
324 | 361 | | |
325 | 362 | | |
326 | 363 | | |
| |||
330 | 367 | | |
331 | 368 | | |
332 | 369 | | |
| 370 | + | |
333 | 371 | | |
334 | 372 | | |
| 373 | + | |
335 | 374 | | |
336 | 375 | | |
337 | 376 | | |
338 | 377 | | |
339 | 378 | | |
340 | 379 | | |
| 380 | + | |
341 | 381 | | |
342 | 382 | | |
343 | 383 | | |
| |||
356 | 396 | | |
357 | 397 | | |
358 | 398 | | |
| 399 | + | |
359 | 400 | | |
360 | 401 | | |
361 | 402 | | |
| |||
0 commit comments