how many threads does the browser have to process when I make 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?
"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.
Previous: How to use the company desktop as a springboard to access the company local area network at home
Next: I'd like to ask about the function of panel dragging in react.