core
Toggle table of contents
1.5.3
common
Platform filter
common
Switch theme
Search in API
core
core
/
com.cloudflare.realtimekit.internal.callstats.tests
/
DataThroughputTest
Data
Throughput
Test
class
DataThroughputTest
(
config
:
RtcConfiguration
,
done
:
(
Any
)
->
Unit
,
failed
:
(
String
)
->
Unit
,
coroutineScope
:
CoroutineScope
,
logger
:
Logger
)
:
CallTest
Members
Constructors
Data
Throughput
Test
Link copied to clipboard
constructor
(
config
:
RtcConfiguration
,
done
:
(
Any
)
->
Unit
,
failed
:
(
String
)
->
Unit
,
coroutineScope
:
CoroutineScope
,
logger
:
Logger
)
Properties
ch1
Link copied to clipboard
lateinit
var
ch1
:
DataChannel
ch2
Link copied to clipboard
lateinit
var
ch2
:
DataChannel
on
Message
DC2
Link copied to clipboard
open
override
val
onMessageDC2
:
suspend
(
ByteArray
)
->
Unit
on
Open
DC1
Link copied to clipboard
open
override
val
onOpenDC1
:
(
)
->
Unit
pc1
Link copied to clipboard
lateinit
var
pc1
:
PeerConnection
pc2
Link copied to clipboard
lateinit
var
pc2
:
PeerConnection
Functions
start
Link copied to clipboard
suspend
fun
start
(
timeout
:
Long
)
test
Complete
Link copied to clipboard
suspend
fun
testComplete
(
data
:
Any
)