Company
Date Published
Author
Liza Shulyayeva
Word count
940
Language
English
Hacker News points
None

Summary

** The Daily video call API now offers a server-side `/rooms/:name/send-app-message` endpoint that allows developers to send "app-message" events to participants from their server-side logic, eliminating the need for separate client-side code paths. This feature enables sending data such as information that cannot be trusted to a client-side origin or data with central, non-participant-specific sources of truth. The new endpoint is demonstrated in a small demo using Daily Prebuilt, which allows users to send messages to participants from both the client and server sides. A server-side Netlify function is used to send an "app-message" event to a specified room, and a client-side handler parses the data and formats the greeting accordingly. This feature simplifies daily developers' lives by enabling them to send server-side data to selected Daily participants without additional messaging implementation.