Back to talks

Your state is my state and my state is your state: a tale of WebRTC chat history and shared P2P state

We build Daily Prebuilt, a ready-to-use embeddable video chat interface, on top of daily-js. Every Prebuilt feature request is a chance to put our WebRTC APIs to the test.

When adding text chat history, we wanted to avoid storing (and maintaining) potentially sensitive user information in a database. We needed to find a way to share non-persistent state across thousands of clients through network packets, while avoiding potential pitfalls and bottlenecks.

In this talk, we’ll introduce patterns for solving shared P2P state that we learned from adding a record-less HIPAA compliant chat history to Daily Prebuilt.