Commit 9ec18d4
committed
Add SSE streaming support to Ajax class and enhance documentation
- Implement `stream()` method in the Ajax class for Server-Sent Events (SSE) streaming.
- Update README.md with full API reference, usage examples, and SSE streaming guide.
- Add tests for SSE streaming functionality in ajax.test.js.
- Ensure proper handling of various SSE event formats and connection errors.1 parent ddf030d commit 9ec18d4
6 files changed
Lines changed: 1249 additions & 6 deletions
File tree
- src
- core/request
- plugins/search
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
12 | 40 | | |
13 | 41 | | |
14 | 42 | | |
| |||
0 commit comments