emit "connect" event, like net does
Merge pull request #46 from dominictarr/master

emit "connect" event, like net does