Add set_online to public API to notify that client is online (lib)