Use nodejs's ws module to simulate the client side to create up to 500 connections?

create a websocket in the loop and bind the corresponding event. When the upper limit is 500, each connection will be created successfully and the backend will be returned correctly. But when this number reaches 520 +, the excess cannot be created successfully. Why is that?

the reason for doing this is to write your own stress test tool.

Mar.06,2021
Menu