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

Function createRTCClient

test/integration_helpers.go:276–284  ·  view source on GitHub ↗

creates a client and runs against server

(name string, port int, testRTCServicePath testRTCServicePath, opts *testclient.Options)

Source from the content-addressed store, hash-verified

274
275// creates a client and runs against server
276func createRTCClient(name string, port int, testRTCServicePath testRTCServicePath, opts *testclient.Options) *testclient.RTCClient {
277 var customizer func(token *auth.AccessToken, grants *auth.VideoGrant)
278 if opts != nil {
279 customizer = opts.TokenCustomizer
280 }
281 token := joinToken(testRoom, name, customizer)
282
283 return createRTCClientWithToken(token, port, testRTCServicePath, opts)
284}
285
286// creates a client and runs against server
287func createRTCClientWithToken(token string, port int, testRTCServicePath testRTCServicePath, opts *testclient.Options) *testclient.RTCClient {

Callers 15

TestAgentsFunction · 0.85
TestAgentNamespacesFunction · 0.85
TestAgentMultiNodeFunction · 0.85
scenarioDataPublishFunction · 0.85
scenarioJoinClosedRoomFunction · 0.85
TestWebhooksFunction · 0.85
TestMultiNodeRoutingFunction · 0.85

Calls 2

joinTokenFunction · 0.85
createRTCClientWithTokenFunction · 0.85

Tested by 15

TestAgentsFunction · 0.68
TestAgentNamespacesFunction · 0.68
TestAgentMultiNodeFunction · 0.68
TestWebhooksFunction · 0.68
TestMultiNodeRoutingFunction · 0.68
TestMultiNodeDataBlobFunction · 0.68