def unsubscribe(self, subscription, max=None):
        if max is None:
            self._send('UNSUB %d' % subscription.sid)
            self._subscriptions.pop(subscription.sid)
        else:
            subscription.max = max
            self._send('UNSUB %d %s' % (subscription.sid, max))
Unsubscribe will remove interest in the given subject. If max is
dataset/ETHPy150Open mcuadros/pynats/pynats/connection.py/Connection.unsubscribe