Move client creation into connect for pump.io protocol