Commit b4c41be
committed
Switch to empty SSE comment events for keep-alive
Prior to this commit, the SSE handler was using a "comment" event with a
single space character for keep-alive purposes because Spring Framework
did not support empty comments.
This has been fixed in Framework, we can now use empty comments.
Closes gh-14311 parent 6b168c2 commit b4c41be
2 files changed
Lines changed: 4 additions & 6 deletions
File tree
- spring-graphql/src
- main/java/org/springframework/graphql/server/webmvc
- test/java/org/springframework/graphql/server/webmvc
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
| 168 | + | |
171 | 169 | | |
172 | 170 | | |
173 | 171 | | |
| |||
spring-graphql/src/test/java/org/springframework/graphql/server/webmvc/GraphQlSseHandlerTests.java
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments