public function unsubscribe($sid, $quantity = null)
    {
        $msg = 'UNSUB '.$sid;
        if ($quantity !== null) {
            $msg = $msg.' '.$quantity;
        }

        $this->send($msg);
        if ($quantity === null) {
            unset($this->subscriptions[$sid]);
        }
    }
public function unsubscribe($sid, $quantity = null)
    {
        $msg = 'UNSUB '.$sid;
        if ($quantity !== null) {
            $msg = $msg.' '.$quantity;
        }

        $this->send($msg);
        if ($quantity === null) {
            unset($this->subscriptions[$sid]);
        }
    }
public function unsubscribe ( $ sid , $ quantity = null ) { $ msg = 'UNSUB ' . $ sid ; if ( $ quantity !== null ) { $ msg = $ msg . ' ' . $ quantity ; } $ this -> send ( $ msg ) ; if ( $ quantity === null ) { unset ( $ this -> subscriptions [ $ sid ] ) ; } }
Unsubscribe from a event given a subject.

@param string  $sid      Subscription ID.
@param integer $quantity Quantity of messages.

@return void
Unsubscribe from a event given a subject .