Esp32 few clients and few servers

I see a couple of challenges with what you are asking:

  1. No, I don't think a server can detach a client during a synchronous http request-response. Given the transient nature of a synchronous http call (on the close order of a couple of seconds), I'm not sure why it matters.

  2. How would the "server" know there was a closer client that wanted to attach? The clients presumably know the RSSI of the server, but the server does not typically know the RSSI of the client(s).