protected function acceptConnection($server, $request, $httpRequest, $handler)
    {
        $id = $request->fd;

        $connection = $this->createWebSocketConnection($server, $id);

        $this->fireOpenEvent($handler, $connection, $httpRequest);

        $this->connections[$id] = compact('connection', 'handler');
    }