(testRTCServicePath testRTCServicePath, opts *testclient.Options)
| 254 | } |
| 255 | |
| 256 | func 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 |
| 276 | func createRTCClient(name string, port int, testRTCServicePath testRTCServicePath, opts *testclient.Options) *testclient.RTCClient { |
no outgoing calls