createDataStream abstract method

Future<int> createDataStream(
  1. DataStreamConfig config
)

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.

  • config The configurations for the data stream. See DataStreamConfig.

Returns ID of the created data stream, if the method call succeeds. < 0: Failure.

Implementation

Future<int> createDataStream(DataStreamConfig config);