public function handleDisconnect(NetworkConnectionInterface $conn) { if ($this->connCollection->contains($conn)) { $decor = $this->connCollection[$conn]; $this->connCollection->detach($conn); $this->wsServer->handleDisconnect($decor); } }