removeConnection(requestContext) {
    const connId = requestContext.connection.id;

    if (!connId || !requestContext.connection.protocol) {
      global.kuzzle.log.error(
        kerror.get(
          "protocol",
          "runtime",
          "invalid_connection",
          JSON.stringify(requestContext.context),
        ),
      );
      return;
    }

    if (!this.connections.has(connId)) {
      global.kuzzle.log.error(
        kerror.get(
          "protocol",
          "runtime",
          "unknown_connection",
          JSON.stringify(connId),
        ),
      );
      return;
    }

    this.connections.delete(connId);

    global.kuzzle.statistics.dropConnection(requestContext);
  }
Removes a connection from the connection pool.

@param {RequestContext} requestContext