Update client to handle new SDK API (listenToEvents ...)