Unsubscribe from the supplied channels. If empty, unsubscribe from all channels
(self, *args)
| 1387 | return ret_val |
| 1388 | |
| 1389 | def unsubscribe(self, *args): |
| 1390 | """ |
| 1391 | Unsubscribe from the supplied channels. If empty, unsubscribe from |
| 1392 | all channels |
| 1393 | """ |
| 1394 | if args: |
| 1395 | args = list_or_args(args[0], args[1:]) |
| 1396 | channels = self._normalize_keys(dict.fromkeys(args)) |
| 1397 | else: |
| 1398 | channels = self.channels |
| 1399 | self.pending_unsubscribe_channels.update(channels) |
| 1400 | return self.execute_command("UNSUBSCRIBE", *args) |
| 1401 | |
| 1402 | def ssubscribe( |
| 1403 | self, |