How to be sure that the message sent by AppWeb.Endpoint.broadcast!() was actually received by the client?

Is that possible?

Sounds like the Two Generals’ Problem :slight_smile:

A sends message to B
B sends a “message received” message back to A
A sends an “acknowledgement received” message back to B (this step might be optional depending on your use case)

Now all parties are synchronised.

In your case, A is whoever calls broadcast, and your Websocket client, B in the example, will need to send a confirmation up the pipe.

1 Like