Add example of injecting the socket

Closes #2