`client` is somewhat misleading as a variable name here. `connection` perhaps? :)