getChannelMessages method

Future<Object> getChannelMessages(
  1. String channelId, {
  2. int skip = 0,
})

Implementation

Future<Object> getChannelMessages(String channelId, {int skip = 0}) {
  var completer = Completer<Object>();
  final eventId = Uuid().v4();
  postMessage("getChannelMessages",
      {"eventId": eventId, "channelId": channelId, "skip": skip});
  _promiseBus[eventId] = completer;
  return completer.future;
}