Then we need to understand why the client is undefined.
I guess it can be fixable using .bind(this) or something.