Send RTC configuration with joined message.

This avoids one HTTP request, and is potentially more flexible.
This commit is contained in:
Juliusz Chroboczek
2020-12-28 02:25:46 +01:00
parent d09c0f0a80
commit a0418d26ec
8 changed files with 121 additions and 101 deletions
-6
View File
@@ -45,12 +45,6 @@ func Serve(address string, dataDir string) error {
})
http.HandleFunc("/recordings/", recordingsHandler)
http.HandleFunc("/ws", wsHandler)
http.HandleFunc("/ice-servers.json",
func(w http.ResponseWriter, r *http.Request) {
mungeHeader(w)
serveFile(w, r,
filepath.Join(dataDir, "ice-servers.json"))
})
http.HandleFunc("/public-groups.json", publicHandler)
http.HandleFunc("/stats", func(w http.ResponseWriter, r *http.Request) {
statsHandler(w, r, dataDir)