How many threads will the browser have to process two websocket connections at the same time?

how many threads does the browser have to process when I make two websocket connections at the same time?


What does

"handle" mean?

just establish ws links and do not change the single thread of the Javascript engine. Like two xhr, they do not interfere with each other, and only one callback can be called at a time.

if the underlying layer is taken into account, the browser will set up two new threads for asynchronous tcp communication, but there is still only one event queue and still cannot send or receive messages at the same time.

Menu