I creating a web socket connection using ratchet php. I connected a client and then executed a query(it will take around 20 sec to execute the query) in the mean time I try to connect another client and I see that the web socket connection is in pending state(still trying to switch protocol). Later when the response has come for the initial request I see that the server prints 'new connection established' (have kept this statement in my onOpen function).
If react php works on same principle as NodeJs then even if the processing takes lot of time, shouldn't the connection get established?
Why is the web socket connection getting blocked because of the later execution part?