detach method

Future<void> detach()

Detach from this channel. Any resulting channel state change is emitted to any listeners registered using the RealtimeChannel.on stream.

Once all clients globally have detached from the channel, the channel will be released in the Ably service within two minutes.

Implementation

Future<void> detach() => invoke(PlatformMethod.detachRealtimeChannel, {
      TxTransportKeys.channelName: _channelName,
    });