openSession abstract method

ConsumerSessionHandle? openSession(
  1. String producerId, {
  2. required void streaming(),
  3. required void failed(),
})

A session on producerId, or null when the client refuses one.

Implementation

ConsumerSessionHandle? openSession(
  String producerId, {
  required void Function() streaming,
  required void Function() failed,
});