[fix] restored on_connected handler to be a part of the libxively api