pause method

bool pause()

暂停消息流监听 Pause message flow listening

Implementation

bool pause() {
  if (!_supportPlatform) return false;
  if (_streamSubscription != null && !_streamSubscription!.isPaused) {
    _streamSubscription!.pause();
    return true;
  }
  return false;
}