How to interrupt ESP32 Server on client.available()?

Hi,
I want my ESP32 server interrupts when there is any client sending connection request.
I have gone through attachinterrupt function, but that attach interrupt on state of any pin.
Is there any way out to implement interrupt on client request?
If there is please suggest me how to implement that?
Regards
Akansha