mock socket. fixes #201
v0.37.0