unpublish method

  1. @override
Future<void> unpublish()

Stops publishing a stream to the channel.

If you call this method in a channel where you are not publishing streams, the SDK returns ErrorCode.Refused.

Implementation

@override
Future<void> unpublish() {
  return _invokeMethod('unpublish');
}