def do_unsub(self, id_, silent):
sub = Subscription.objects.get(<EOL>connection=this.ws.connection, sub_id=id_,<EOL>)<EOL>for col, qs in self.sub_unique_objects(sub):<EOL><INDENT>if isinstance(col.model._meta.pk, AleaIdField):<EOL><INDENT>meteor_ids = None<EOL><DEDENT>else:<EOL><INDENT>meteor_ids = get_meteor_ids(<EOL>qs.model, qs.values_list('<STR_LIT>', flat=True),<EOL>)<EOL><DEDENT>for obj in qs:<EOL><INDENT>payload = col.obj_change_as_msg(obj, REMOVED, meteor_ids)<EOL>this.send(payload)<EOL><DEDENT><DEDENT>this.subs[sub.publication].remove(sub.pk)<EOL>sub.delete()<EOL>if not silent:<EOL><INDENT>this.send({'<STR_LIT>': '<STR_LIT>', '<STR_LIT:id>': id_})<EOL><DEDENT>
Unsubscribe the current thread from the specified subscription id.