Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Events sent over an sse stream should be in order. It’s a single tcp stream with messages separated by newlines. If you’re seeing messages arrive out of order, there may be a bug in whatever sse stream library you’re using.

Http messages of course have no ordering guarantee. If you want ordering (and connection state), websockets might be a better choice.



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: