MCPcopy Index your code
hub / github.com/Azure/fetch-event-source / newMessage

Function newMessage

src/parse.ts:172–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170}
171
172function 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}

Callers 1

getMessagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…