Enumerate Node.js net.Server connections

Is it possible to loop through all the socket objects corresponding to connections made to a net.Server instance in Node.js?

Ultimately, I need to close all connections. It seems that the only way to do this would be to keep an array of those socket objects as they are created. Please let me know if there is a built-in way to do this that might be cleaner.