createDataStreamWithConfig abstract method
Creates a data stream.
Compared with createDataStream 1/2
, this method does not support data reliability. If a data packet is not received five seconds after it was sent, the SDK directly discards the data.
Creates a data stream. Each user can create up to five data streams in a single channel.
Param config
The configurations for the data stream.
return ID of the created data stream, if the method call succeeds. < 0: Failure. You can refer to Error Codes and Warning Codes for troubleshooting.
Implementation
Future<int?> createDataStreamWithConfig(DataStreamConfig config);