Allow existing Socket object to be injected.
Merge pull request #8 from bantu/inject-socket-object

Allow existing Socket object to be injected.