()
| 170 | } |
| 171 | |
| 172 | function newMessage(): EventSourceMessage { |
| 173 | // data, event, and id must be initialized to empty strings: |
| 174 | // https://html.spec.whatwg.org/multipage/server-sent-events.html#event-stream-interpretation |
| 175 | // retry should be initialized to undefined so we return a consistent shape |
| 176 | // to the js engine all the time: https://mathiasbynens.be/notes/shapes-ics#takeaways |
| 177 | return { |
| 178 | data: '', |
| 179 | event: '', |
| 180 | id: '', |
| 181 | retry: undefined, |
| 182 | }; |
| 183 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…