creates a client and runs against server
(name string, port int, testRTCServicePath testRTCServicePath, opts *testclient.Options)
| 274 | |
| 275 | // creates a client and runs against server |
| 276 | func 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 |
| 287 | func createRTCClientWithToken(token string, port int, testRTCServicePath testRTCServicePath, opts *testclient.Options) *testclient.RTCClient { |