sse-express icon indicating copy to clipboard operation
sse-express copied to clipboard

README.md typo

Open maulberto3 opened this issue 6 years ago • 2 comments

Hi, first it says: res.sse({ event: 'connected', data: { welcomeMsg: 'Hello world!' } } );

But then, the API says: res.sse({data, [event], [id]} | Array<{data, [event], [id]}>)

Could you please fix the typo?

maulberto3 avatar Jul 27 '18 15:07 maulberto3

@maulberto3 Seems that the example is good actually

gjuchault avatar Jul 28 '18 14:07 gjuchault

@gjuchault Oh, I just thought that the order mattered. Thank you.

maulberto3 avatar Jul 28 '18 15:07 maulberto3