Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Use net.createConnection #1

Merged
1 commit merged into from
Feb 13, 2011
Merged

Use net.createConnection #1

1 commit merged into from
Feb 13, 2011

Conversation

aeosynth
Copy link
Contributor

http://nodejs.org/docs/v0.4.0/api/net.html#net.createConnection

net.createConnection(arguments...)

Construct a new socket object and opens a socket to the given location.

Shaves off one line. Furthermore, Stream is just an alias of Socket - https://github.com/ry/node/blob/master/lib/net.js#L220 .

@pietern
Copy link
Contributor

pietern commented Feb 13, 2011

Thanks, makes sense.

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants