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