deleteSubscription method

Future deleteSubscription(
  1. String topicName,
  2. String userId
)

Delete subscription. Requires Share permission

Implementation

Future deleteSubscription(String topicName, String userId) {
  var packet = _packetGenerator.generate(packet_types.Del, topicName);
  var data = packet.data as DelPacketData;
  data.what = 'sub';
  data.user = userId;
  packet.data = data;
  return _send(packet);
}