Signal v2: envelope and fragments as wire message format. (#3800)

* Signal v2: envelope and fragments as wire message format.

Please see details in https://github.com/livekit/protocol/pull/1133

* log connect response
This commit is contained in:
Raja Subramanian
2025-07-18 15:24:32 +05:30
committed by GitHub
parent b9a44c3fbf
commit 078c01fad3
8 changed files with 119 additions and 76 deletions
+2 -1
View File
@@ -147,13 +147,14 @@ func ParseClientInfo(r *http.Request) *livekit.ClientInfo {
ci.BrowserVersion = values.Get("browser_version")
ci.DeviceModel = values.Get("device_model")
ci.Network = values.Get("network")
// get real address (forwarded http header) - check Cloudflare headers first, fall back to X-Forwarded-For
AugmentClientInfo(ci, r)
return ci
}
func AugmentClientInfo(ci *livekit.ClientInfo, req *http.Request) {
// get real address (forwarded http header) - check Cloudflare headers first, fall back to X-Forwarded-For
ci.Address = GetClientIP(req)
// attempt to parse types for SDKs that support browser as a platform