Nodejs Server Websocket limit

I want to know if there is some type of limitation on the amount of open websockets a Node server can handle.

Right now I am testing a few hundred node instance client.js with the server, each opening its own websocket connection with the node server. After around ~240 clients connected, I get the error: Connect Error: Error: read ECONNRESET

Is there any way to increase or remove these limitations? I am currently testing on one machine but want will move over to Amazon EC2 when testing thousands of websocket connections.

Probably you should increase max limit open file. Use ulimit -n 1024 and then test it. You should read this https://rtcamp.com/tutorials/linux/increase-open-files-limit/