Commit 310d3b2
committed
feat: implement closeStandaloneSSEStream
Implement the ability to close standalone GET SSE streams, enabling
polling behavior for server-initiated notifications (SEP-1699).
Changes:
- closeStandaloneSSEStream() now closes the GET stream by ending
the response and removing from stream mapping
- Events are now stored even when standalone stream is disconnected,
allowing replay on client reconnect with Last-Event-ID
This complements the existing closeSSEStream() for POST streams.1 parent 6ee2cad commit 310d3b2
1 file changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
823 | 823 | | |
824 | 824 | | |
825 | 825 | | |
826 | | - | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
827 | 831 | | |
828 | 832 | | |
829 | 833 | | |
| |||
841 | 845 | | |
842 | 846 | | |
843 | 847 | | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | 848 | | |
850 | 849 | | |
| 850 | + | |
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
856 | 856 | | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
857 | 863 | | |
858 | 864 | | |
859 | 865 | | |
| |||
0 commit comments