3 ms·
The SSE example hangs indefinitely on mobile Safari, rendering fully all events that were sent only after canceling load. According to caniuse this shouldn’t be
by eyelidlessness 5y ago
The SSE example hangs indefinitely on mobile Safari, rendering fully all events that were sent only after canceling load. According to caniuse this shouldn’t be a compatibility issue, so something else might be wrong.
I’m not sure what to expect from the websocket example, but I just see “request isn't trying to upgrade to websocket.”
- lucacasonato 5y agoFor the SSE example, Safari only streams HTML, not plain text AFAIK. It should work if you use the endpoint with the `EventStream` constructor. As for the WS example: it is a WebSocket endpoint, so you must connect to it using `new WebSocket` :-)
- eyelidlessness 5y agoThanks, this makes sense. Weird examples to link to, but at least I understand the behavior now.