elixir-webrtc / apps

Example apps built on top of Elixir WebRTC
Apache License 2.0
50 stars 6 forks source link

[Broadcaster] Preserve chat history #56

Closed mickel8 closed 2 months ago

mickel8 commented 2 months ago

This is a very simple implementation of chat history. It has a couple of drawbacks:

I think that we don't have to worry about the first one until we notice this is a problem. I added a simple try catch not to break the whole chat.

The second one sounds a bit unlikely. To solve it, we would probable have to record time of message receival and reorder messages on the frontend (if needed).