Adds callback for connect event

Adds an option that will invoke a callback when the sockets' connect event fires.