Use single socket

Closes #2.