NodeJS to deal with incoming / outgoing connections