def do_unsub(self, id_, silent):
        sub = Subscription.objects.get(
            connection=this.ws.connection, sub_id=id_,
        )
        for col, qs in self.sub_unique_objects(sub):
            if isinstance(col.model._meta.pk, AleaIdField):
                meteor_ids = None
            else:
                meteor_ids = get_meteor_ids(
                    qs.model, qs.values_list('pk', flat=True),
                )
            for obj in qs:
                payload = col.obj_change_as_msg(obj, REMOVED, meteor_ids)
                this.send(payload)
        this.subs[sub.publication].remove(sub.pk)
        sub.delete()
        if not silent:
            this.send({'msg': 'nosub', 'id': id_})
Unsubscribe the current thread from the specified subscription id.
dataset/ETHPy150Open django-ddp/django-ddp/dddp/api.py/DDP.do_unsub