handleMetaMessage method

void handleMetaMessage(
  1. MetaMessage? meta
)

Process a packet if the packet type is meta

Implementation

void handleMetaMessage(MetaMessage? meta) {
  if (meta == null) {
    return;
  }

  onMetaMessage.add(meta);

  Topic? topic = _cacheManager.get('topic', meta.topic ?? '');
  if (topic != null) {
    topic.routeMeta(meta);
  }

  if (meta.id != null) {
    _futureManager.execFuture(meta.id, 200, meta, 'META');
  }
}