change connect event to emit socket

I have a need for some information from the socket after a successful connect.

Tests pass. Doesn't seem to break anything by providing a reference to `sock`.