MCPcopy Index your code
hub / github.com/livekit/livekit / testRTCServicePathToTestClientOptions

Function testRTCServicePathToTestClientOptions

test/integration_helpers.go:256–273  ·  view source on GitHub ↗
(testRTCServicePath testRTCServicePath, opts *testclient.Options)

Source from the content-addressed store, hash-verified

254}
255
256func testRTCServicePathToTestClientOptions(testRTCServicePath testRTCServicePath, opts *testclient.Options) {
257 if opts == nil {
258 return
259 }
260
261 switch testRTCServicePath {
262 case testRTCServicePathv0:
263 opts.RTCServicePath = "/rtc"
264 case testRTCServicePathv0SinglePeerConnection:
265 opts.RTCServicePath = "/rtc"
266 opts.UseJoinRequestQueryParam = true
267 case testRTCServicePathv1:
268 opts.RTCServicePath = "/rtc/v1"
269 opts.UseJoinRequestQueryParam = true
270 default:
271 opts.RTCServicePath = "/rtc"
272 }
273}
274
275// creates a client and runs against server
276func createRTCClient(name string, port int, testRTCServicePath testRTCServicePath, opts *testclient.Options) *testclient.RTCClient {

Callers 2

createRTCClientWithTokenFunction · 0.85
TestAutoCreateFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestAutoCreateFunction · 0.68