public function onClose($server, $serverSocket, $id)
    {
        if (isset($this->connections[$id])) {
            $this->fireCloseEvent(
                $this->connections[$id]['handler'],
                $this->connections[$id]['connection']
            );

            unset($this->connections[$id]);
        }
    }