add support for node.js to act as a socket client