don't rely on `onConnect` being a thing
Merge pull request #1 from rvagg/patch-1

don't rely on `onConnect` being a thing