createDataStreamEx abstract method
Future<int>
createDataStreamEx({
- required DataStreamConfig config,
- required RtcConnection connection,
Creates a data stream.
If you need a more comprehensive solution for low-latency, high-concurrency, and scalable real-time messaging and status synchronization, it is recommended to use.
configThe configurations for the data stream. See DataStreamConfig.connectionThe connection information. See RtcConnection.
Returns ID of the created data stream, if the method call succeeds. < 0: Failure.
Implementation
Future<int> createDataStreamEx(
{required DataStreamConfig config, required RtcConnection connection});