Simple socket wrapper for Node