Make the socket a configurable instance parameter