update connect() calls to correctly return NodeSocket object.
Merge pull request #886 from caryhaynie/master

update connect() calls to correctly return NodeSocket object.