Kraken\Network\Websocket\WsServer::handleDisconnect PHP Method

handleDisconnect() public method

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