pgriess / node-webworker

A WebWorkers implementation for NodeJS
BSD 3-Clause "New" or "Revised" License
646 stars 84 forks source link

Close WSS socket after first client connection #6

Open pgriess opened 14 years ago

pgriess commented 14 years ago

Since this socket is only used to get a connection from a single client, we don't need to keep it open after we get the first 'connection' event. Leaving it open consumes an FD and other resources for the WSS instance.