Make use of connectionListener arg passed to createConnection.
Merge pull request #2 from canndrew/master

Make use of connectionListener arg passed to createConnection.