@rstreamlabs/tunnels 3.8.1 → 3.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -161,14 +161,19 @@ const turn = await createTURNCredentials({
161
161
  clientSecret: process.env.RSTREAM_CLIENT_SECRET!,
162
162
  },
163
163
  projectEndpoint: "project-endpoint",
164
- clusterDomain: "cluster.example.rstream.test",
164
+ turnDomain: "regional.example.rstream.test",
165
+ turnRealm: "global.example.rstream.test",
165
166
  ttlSeconds: 600,
166
167
  });
167
168
  ```
168
169
 
169
170
  TURN credentials are short-lived. `ttlSeconds` is optional, defaults to 600 for
170
171
  local derivation, and must be an integer between 1 and 3600 seconds. PAT-backed
171
- credentials are additionally capped by the PAT expiration.
172
+ credentials are additionally capped by the PAT expiration. `turnDomain` is the
173
+ relay hostname used in ICE URLs; `turnRealm` is the authentication scope used
174
+ for key derivation. A managed client resolves both values from project
175
+ metadata. Lower-level local derivation keeps them explicit because a regional
176
+ relay can belong to a different global realm.
172
177
 
173
178
  ## Webhooks
174
179