public function detachWss($wss) { if (!$this->wss->contains($wss)) { return false; } $this->wss->detach($wss); $wss->unbind('transport', [$this, 'wsHandler']); return true; }