Heartbeat missing from SSE

I'm subscribing to the SSE events and I'm dropping connections. The documentation makes it sound like there are periodic heartbeats on the SSE endpoint but I don't see them.

How do you get the heartbeats so I can monitor the connection status for Cloud API SSEs?

Thanks!!

The SSE keep-alive mechanism isn't particularly well-defined in the SSE protocol and is not implemented for the Particle cloud SSE endpoints.

This is one of the reasons that SSE is not the best solution for reliable delivery of events.

Thanks. I was able to get the keep-alive working but not using the EventSource unfortunately.

Here's how I did it (the code's bad . . . don't judge me :slight_smile:).