|
|
|
|
|
by hombre_fatal
428 days ago
|
|
Yeah, you'd need a lib or roll your own that races the response against a timeout. Kind of like how you also need to implement app-layer ping/pong over websockets for keepalive even though tcp already sends its own ping/pong. -_- As for EventSource, I don't remember exactly, something always comes up. That said, you could say the same for websockets since even implementing non-buggy reconn/backaway logic is annoying. I'll admit, time for me to try the thing you pitch in the article. |
|
Ref: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_...