Pass the correct client object to published event and callback.